/* Password Reset Styles */
.nord-password-reset { 
    max-width: 480px; 
    margin: 2rem auto; 
    padding: 0 1rem; 
}

.nord-password-reset__card { 
    background: #fff; 
    border: 1px solid #eef1f4; 
    border-radius: 14px; 
    box-shadow: 0 8px 24px rgba(2,6,23,0.06); 
    padding: 1.25rem; 
}

@media (min-width: 640px) { 
    .nord-password-reset__card { 
        padding: 2rem; 
    } 
}

.nord-password-reset__header { 
    text-align: center;
    border-bottom: 1px solid #eef1f4; 
    padding-bottom: 1.5rem; 
    margin-bottom: 1.5rem; 
}

.nord-password-reset__header h2 { 
    margin: 0 0 .5rem; 
    font-size: 1.5rem; 
    color: #0f172a;
}

.nord-password-reset__header p { 
    margin: 0; 
    color: #64748b; 
    font-size: 0.95rem;
}

.nord-password-reset__message {
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    border: 1px solid;
}

.nord-password-reset__message--success {
    background: #ecfdf5;
    border-color: #34d399;
    color: #065f46;
}

.nord-password-reset__message--error {
    background: #fef2f2;
    border-color: #f87171;
    color: #991b1b;
}

.nord-password-reset__message p {
    margin: 0;
    font-size: 0.9rem;
}

.nord-password-reset__form {
    margin-bottom: 1.5rem;
}

.nord-password-reset__field {
    margin-bottom: 1.25rem;
}

.nord-password-reset__label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.nord-password-reset__input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}

.nord-password-reset__input:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.nord-password-reset__input::placeholder {
    color: #9ca3af;
}

.nord-password-reset__help {
    margin-top: 0.25rem;
}

.nord-password-reset__help small {
    color: #64748b;
    font-size: 0.8rem;
}

.nord-password-reset__actions {
    margin-top: 1.5rem;
}

.nord-password-reset__button {
    width: 100%;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.nord-password-reset__button--primary {
    background: #0f766e;
    color: #fff;
}

.nord-password-reset__button--primary:hover {
    background: #0d6660;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 118, 110, 0.3);
}

.nord-password-reset__button--primary:active {
    transform: translateY(0);
}

.nord-password-reset__button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.nord-password-reset__footer {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #eef1f4;
}

.nord-password-reset__footer p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: #64748b;
}

.nord-password-reset__link {
    color: #0ea5e9;
    text-decoration: none;
    font-weight: 500;
}

.nord-password-reset__link:hover {
    color: #0284c7;
    text-decoration: underline;
}

/* Logged in state */
.nord-password-reset--logged-in {
    text-align: center;
    padding: 2rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.nord-password-reset--logged-in p {
    margin: 0;
    color: #64748b;
}

.nord-password-reset--logged-in a {
    color: #0ea5e9;
    text-decoration: none;
    font-weight: 500;
}

.nord-password-reset--logged-in a:hover {
    text-decoration: underline;
}

/* Error state */
.nord-password-reset--error {
    text-align: center;
    padding: 2rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
}

.nord-password-reset--error p {
    margin: 0 0 1rem;
    color: #991b1b;
}

/* Loading state */
.nord-password-reset__form--loading .nord-password-reset__button {
    position: relative;
    color: transparent;
}

.nord-password-reset__form--loading .nord-password-reset__button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .nord-password-reset {
        margin: 1rem auto;
        padding: 0 0.5rem;
    }
    
    .nord-password-reset__card {
        padding: 1rem;
    }
    
    .nord-password-reset__header h2 {
        font-size: 1.25rem;
    }
}

/* Form validation styles */
.nord-password-reset__input:invalid {
    border-color: #f87171;
}

.nord-password-reset__input:valid {
    border-color: #34d399;
}

/* Focus visible for accessibility */
.nord-password-reset__button:focus-visible,
.nord-password-reset__link:focus-visible {
    outline: 2px solid #0ea5e9;
    outline-offset: 2px;
}
