/* Forgot Password Page Styles */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #f5f8fa 0%, #e8eef3 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Error and Success Message Styles */
.error-message, .success-message {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

.error-message {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.success-message {
    background: #dcfce7;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.field-error {
    color: #dc2626;
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

/* Loading Button Styles */
.btn-forgot.loading {
    opacity: 0.8;
    cursor: not-allowed;
}

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

.button-loading svg {
    animation: spin 1s linear infinite;
}

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

/* Form Input Error States */
.form-input.error {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Form Styles */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.2px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    background: var(--bg-body);
    border: 1.5px solid transparent;
    border-radius: 12px;
    transition: all 0.2s ease;
    outline: none;
}

.form-input:focus {
    background: var(--bg-navbar);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(255, 122, 0, 0.1);
}

.form-input::placeholder {
    color: var(--text-muted);
}

/* Forgot Password specific styles */
.forgot-password-container {
    width: 100%;
    max-width: 440px;
    animation: fadeInUp 0.6s ease-out;
}

.forgot-password-card {
    background: var(--bg-navbar);
    border-radius: 20px;
    padding: 48px;
    box-shadow: 0 8px 32px var(--shadow-sm), 0 2px 8px var(--shadow-sm);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.forgot-password-header {
    text-align: center;
    margin-bottom: 40px;
}

.forgot-password-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.forgot-password-header p {
    font-size: 15px;
    color: var(--text-secondary);
    font-weight: 400;
}

.btn-forgot {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: -0.2px;
    box-shadow: 0 4px 12px var(--shadow-primary);
}

.btn-forgot:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--shadow-primary);
}

.btn-forgot:active {
    transform: translateY(0);
}

.back-to-login {
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
}

.back-to-login a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.back-to-login a:hover {
    color: var(--primary-dark);
}

/* Logo Styles */
.logo {
    width: 260px;
    height: 80px;
    /* background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%); */
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    /* box-shadow: 0 4px 16px var(--shadow-primary); */
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.help-text {
    background: var(--bg-body);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
    font-size: 14px;
    color: var(--text-secondary);
    border-left: 4px solid var(--primary-color);
}

.help-text p {
    margin: 0;
}

/* Responsive Design */
@media (max-width: 576px) {
    .forgot-password-card {
        padding: 32px 24px;
    }

    .forgot-password-header h1 {
        font-size: 28px;
    }
}
