/* ================================
   Password Reset Page Styles
   ================================ */

/* Reset Page Layout */
.reset-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #E0F2F1 0%, #B2DFDB 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.reset-container {
    width: 100%;
    max-width: 440px;
}

/* Reset Card */
.reset-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Reset Header */
.reset-header {
    background: #00695C;
    padding: 40px 32px;
    text-align: center;
}

.reset-header .login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

.reset-header .login-logo .logo-icon {
    font-size: 40px;
}

.reset-header .login-logo h1 {
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin: 0;
}

.reset-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    margin: 0;
}

/* Reset Form */
.reset-form {
    padding: 32px;
}

.reset-form .form-group {
    margin-bottom: 20px;
}

.reset-form .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}

.reset-form .form-group input {
    width: 100%;
    height: 52px;
    padding: 12px 16px;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s ease;
}

.reset-form .form-group input:focus {
    outline: none;
    border-color: #00897B;
    box-shadow: 0 0 0 3px rgba(0, 137, 123, 0.1);
}

/* Input with Icon */
.input-group {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    opacity: 0.6;
}

.input-group input {
    padding-left: 48px !important;
}

/* Password Toggle */
.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.password-toggle:hover {
    opacity: 1;
}

/* Form Hint */
.form-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #6B7280;
}

/* Reset Description */
.reset-description {
    color: #4B5563;
    font-size: 14px;
    margin-bottom: 24px;
    line-height: 1.6;
}

/* Reset Steps */
.reset-step.hidden {
    display: none;
}

/* Reset Success Icon */
.reset-success-icon {
    width: 80px;
    height: 80px;
    background: #D1FAE5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 40px;
    color: #065F46;
}

/* Reset Step 2 Content */
.reset-step h3 {
    text-align: center;
    font-size: 24px;
    color: #065F46;
    margin-bottom: 16px;
}

.reset-step > p {
    text-align: center;
    color: #4B5563;
    margin-bottom: 12px;
    line-height: 1.6;
}

.reset-note {
    font-size: 12px;
    color: #6B7280;
    text-align: center;
    margin-bottom: 24px;
}

/* Error Message */
.error-message {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #FEE2E2;
    border-radius: 8px;
    margin-bottom: 16px;
    color: #DC2626;
    font-size: 14px;
}

.error-message span:first-child {
    font-size: 18px;
}

.error-message.hidden {
    display: none;
}

/* Success Message */
.success-message {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #D1FAE5;
    border-radius: 8px;
    margin-bottom: 16px;
    color: #065F46;
    font-size: 14px;
}

.success-message span:first-child {
    font-size: 18px;
}

.success-message.hidden {
    display: none;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    font-family: 'Hind Siliguri', sans-serif;
}

.btn-primary {
    background-color: #00897B;
    color: white;
}

.btn-primary:hover {
    background-color: #00695C;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: #F1F5F9;
    color: #475569;
    border: 1px solid #E2E8F0;
}

.btn-secondary:hover {
    background-color: #E2E8F0;
    color: #0F172A;
}

.btn-block {
    width: 100%;
    justify-content: center;
    padding: 16px 24px;
    font-size: 16px;
}

/* Loading State */
.btn .hidden {
    display: none;
}

.btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Reset Footer */
.reset-footer {
    padding: 24px 32px;
    background: #F8FAFC;
    text-align: center;
}

.reset-footer p {
    color: #4B5563;
    font-size: 14px;
    margin-bottom: 16px;
}

.reset-footer a {
    color: #00897C;
    font-weight: 500;
    text-decoration: none;
}

.reset-footer a:hover {
    text-decoration: underline;
}

/* Auth Back Link */
.auth-back {
    padding: 16px 32px 24px;
    text-align: center;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #6B7280;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: #374151;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #00897B;
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateX(400px);
    transition: transform 0.3s ease-in-out;
    z-index: 1002;
    max-width: 300px;
}

.toast.show {
    transform: translateX(0);
}

.toast.hidden {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .reset-header {
        padding: 32px 24px;
    }

    .reset-form {
        padding: 24px;
    }

    .reset-footer {
        padding: 20px 24px;
    }
}

@media (max-width: 480px) {
    .reset-page {
        padding: 16px;
    }

    .reset-card {
        border-radius: 12px;
    }

    .reset-header .login-logo h1 {
        font-size: 24px;
    }

    .reset-header .login-logo .logo-icon {
        font-size: 32px;
    }

    .reset-form .form-group input {
        height: 48px;
        font-size: 14px;
    }

    .reset-success-icon {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }
}

/* Print Styles */
@media print {
    .reset-page {
        display: none !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .reset-page {
        background: linear-gradient(135deg, #1F2937 0%, #111827 100%);
    }

    .reset-card {
        background: #1F2937;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    }

    .reset-header {
        background: #00695C;
    }

    .reset-header .login-logo h1 {
        color: white;
    }

    .reset-form .form-group label {
        color: #F3F4F6;
    }

    .reset-form .form-group input {
        background: #374151;
        border-color: #4B5563;
        color: white;
    }

    .reset-form .form-group input:focus {
        border-color: #00897B;
    }

    .reset-description {
        color: #9CA3AF;
    }

    .reset-step > p {
        color: #9CA3AF;
    }

    .reset-footer {
        background: #111827;
    }

    .reset-footer p {
        color: #9CA3AF;
    }

    .auth-back {
        background: #111827;
    }

    .back-link {
        color: #9CA3AF;
    }

    .back-link:hover {
        color: #F3F4F6;
    }
}
