:root {
    --color-cream: #F4EEE5;
    --color-green-dark: #1a5c3e;
    --color-green-light: #2d8659;
    --color-green-lighter: #40b973;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--color-cream);
    min-height: 100vh;
}

.forgot-password-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    gap: 0;
}

/* Left Banner Section */
.forgot-password-banner {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 60px 40px;
}

.forgot-password-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, 
        transparent 0%,
        transparent 30%,
        rgba(0, 0, 0, 0.3) 60%,
        rgba(0, 0, 0, 0.7) 100%
    );
    z-index: 1;
}

.banner-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-content {
    position: relative;
    z-index: 10;
    text-align: left;
    color: white;
    max-width: 100%;
}

.banner-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.banner-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.banner-subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 380px;
}

/* Right Form Section */
.forgot-password-form-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background-color: white;
}

.forgot-password-form-container {
    width: 100%;
    max-width: 420px;
}

.form-header {
    margin-bottom: 32px;
}

.form-header h1 {
    font-size: 32px;
    font-weight: bold;
    color: var(--color-green-dark);
    margin-bottom: 8px;
}

.form-header p {
    color: #666;
    font-size: 14px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1a1a1a;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e0d5c7;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus {
    border-color: var(--color-green-dark);
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 92, 62, 0.1);
}

.password-group {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 14px;
    top: 38px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
    font-size: 20px;
}

.password-toggle:hover {
    color: var(--color-green-dark);
}

/* Password Strength Indicator */
.password-strength {
    margin-bottom: 20px;
    display: none;
}

.password-strength.show {
    display: block;
}

.strength-bar {
    height: 4px;
    background: #e0d5c7;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 6px;
}

.strength-fill {
    height: 100%;
    width: 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.strength-fill.weak {
    width: 25%;
    background: #ef4444;
}

.strength-fill.fair {
    width: 50%;
    background: #f59e0b;
}

.strength-fill.good {
    width: 75%;
    background: #3b82f6;
}

.strength-fill.strong {
    width: 100%;
    background: #22c55e;
}

.strength-text {
    font-size: 12px;
    color: #666;
}

.strength-text.weak {
    color: #ef4444;
}

.strength-text.fair {
    color: #f59e0b;
}

.strength-text.good {
    color: #3b82f6;
}

.strength-text.strong {
    color: #22c55e;
}

/* Password Match Indicator */
.password-match {
    display: none;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
    font-size: 12px;
}

.password-match.show {
    display: flex;
}

.password-match i {
    font-size: 16px;
}

.password-match.match {
    color: #22c55e;
}

.password-match.no-match {
    color: #ef4444;
}

.btn-submit {
    width: 100%;
    padding: 12px;
    background: var(--color-green-dark);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-submit:hover {
    background: var(--color-green-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(26, 92, 62, 0.2);
}

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

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Messages */
.success-message {
    color: #22c55e;
    font-size: 14px;
    margin-bottom: 16px;
    padding: 12px;
    background: #dcfce7;
    border-left: 4px solid #22c55e;
    border-radius: 4px;
    display: none;
    align-items: center;
    gap: 8px;
    animation: slideDown 0.3s ease;
}

.success-message.show {
    display: flex;
}

.success-message i {
    font-size: 20px;
}

.error-message {
    color: #ef4444;
    font-size: 14px;
    margin-bottom: 16px;
    padding: 12px;
    background: #fee2e2;
    border-left: 4px solid #ef4444;
    border-radius: 4px;
    display: none;
    animation: slideDown 0.3s ease;
}

.error-message.show {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.back-link {
    text-align: center;
    margin-top: 24px;
}

.back-link a {
    color: var(--color-green-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s;
}

.back-link a:hover {
    color: var(--color-green-light);
}

.back-link i {
    font-size: 18px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .forgot-password-wrapper {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .forgot-password-banner {
        display: none;
    }

    .forgot-password-form-wrapper {
        min-height: 100vh;
        padding: 20px;
    }

    .forgot-password-form-container {
        max-width: 100%;
    }

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