/* Forgot Password Page Specific Styles */
.login-page {
    display: flex;
    min-height: calc(100vh - 60px);
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
}

.login-wrapper {
    display: flex;
    width: 100%;
    max-width: 900px;
    background-color: var(--bg);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.logo-section {
    flex: 1;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: var(--primary);
    color: var(--text-light);
}

.logo-section img {
    max-width: 140px;
    margin-bottom: 0.8rem;
}

.logo-section h2 {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
    color: var(--text-light);
}

.logo-section p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 280px;
}

.form-section {
    flex: 1;
    padding: 1.25rem;
    background-color: var(--bg);
}

.form-header {
    text-align: center;
    margin-bottom: 1rem;
}

.form-header h1 {
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
    color: var(--text);
}

.form-header p {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.form-group {
    margin-bottom: 0.8rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 500;
    color: var(--text);
    font-size: 0.85rem;
}

.form-control {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    background-color: var(--bg);
    color: var(--text);
    font-size: 0.85rem;
    font-family: system-ui, -apple-system, sans-serif;
    transition: all 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(1, 112, 185, 0.2);
}

.btn-submit {
    width: 100%;
    padding: 0.7rem;
    background-color: var(--primary);
    color: var(--text-light);
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 0.3rem;
    font-family: 'Cabin Condensed', sans-serif;
}

.btn-submit:hover {
    background-color: var(--primary-dark);
}

.form-footer {
    margin-top: 0.8rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
}

.form-footer a {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s ease;
}

.form-footer a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.error-container {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--danger);
    color: var(--danger);
    padding: 0.6rem;
    border-radius: 4px;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
}

.success-container {
    background-color: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--success);
    color: var(--success);
    padding: 0.6rem;
    border-radius: 4px;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
}

.theme-toggle {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.theme-toggle:hover {
    color: var(--primary);
}

.validation-message {
    font-size: 0.75rem;
    margin-top: 0.25rem;
    font-family: system-ui, -apple-system, sans-serif;
}

.validation-message.error {
    color: var(--danger);
}

.validation-message.success {
    color: var(--success);
}

/* Dark mode styles */
body.dark-mode .login-page {
    background-color: var(--dm-bg);
}

body.dark-mode .logo-section {
    background-color: var(--dm-primary);
}

body.dark-mode .form-section {
    background-color: var(--dm-bg);
}

body.dark-mode .form-header h1 {
    color: var(--dm-text);
}

body.dark-mode .form-header p {
    color: var(--dm-gray);
}

body.dark-mode .form-group label {
    color: var(--dm-text);
}

body.dark-mode .form-control {
    background-color: var(--dm-card);
    color: var(--dm-text);
    border-color: var(--dm-border);
}

body.dark-mode .form-control:focus {
    border-color: var(--dm-primary);
    box-shadow: 0 0 0 2px rgba(3, 164, 228, 0.2);
}

body.dark-mode .form-footer a {
    color: var(--dm-gray);
}

body.dark-mode .form-footer a:hover {
    color: var(--dm-primary);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .login-page {
        align-items: flex-start;
        padding-top: 0.4rem;
        min-height: calc(100vh - 50px);
    }

    .login-wrapper {
        flex-direction: column;
        max-width: 95%;
    }

    .logo-section {
        order: -1;
        flex: none;
        padding: 0.8rem;
        border-bottom: 1px solid var(--border);
    }

    .logo-section img {
        max-width: 100px;
        margin-bottom: 0.6rem;
    }

    .logo-section h2 {
        font-size: 1.1rem;
    }

    .logo-section p {
        font-size: 0.8rem;
    }

    .form-section {
        padding: 1rem;
    }

    .form-header h1 {
        font-size: 1.1rem;
    }

    .form-control {
        padding: 0.55rem 0.7rem;
    }

    .btn-submit {
        padding: 0.65rem;
    }

    .form-footer {
        flex-direction: column;
        gap: 0.4rem;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .login-wrapper {
        max-width: 100%;
        border-radius: 0;
    }

    .logo-section {
        padding: 0.6rem;
    }

    .form-section {
        padding: 0.8rem;
    }

    .form-header h1 {
        font-size: 1rem;
    }

    .form-control {
        padding: 0.5rem 0.65rem;
        font-size: 0.8rem;
    }

    .btn-submit {
        font-size: 0.85rem;
    }
}