:root {
    --primary-blue: #1f6fbf;
    --primary-blue-hover: #17558f;
    --light-blue: #eef2ff;
    --light-blue-hover: #e0ecff;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --bg-white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--bg-white);
}

.login-container {
    display: flex;
    justify-content: center;
    width: 100%;
    min-height: 620px;
}

/* Left Panel Styles */
.login-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 2rem;
    position: relative;
    background-color: var(--bg-white);
}

.login-form-wrapper {
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.form-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.input-group {
    margin-bottom: 1rem;
    position: relative;
}

.input-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.875rem;
    color: var(--text-dark);
    outline: none;
    transition: border-color 0.2s;
}

.input-group input:focus {
    border-color: var(--primary-blue);
}

.input-group input::placeholder {
    color: #9ca3af;
}

.password-group .toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    cursor: pointer;
}

.forgot-password {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    color: var(--text-muted);
    cursor: pointer;
}

.remember-me input {
    accent-color: var(--primary-blue);
    cursor: pointer;
}

.forgot-password a {
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 0.875rem;
}

.forgot-password a:hover {
    text-decoration: underline;
}

.btn-primary {
    width: 100%;
    padding: 0.875rem;
    background-color: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-bottom: 1.5rem;
}

.btn-primary:hover {
    background-color: var(--primary-blue-hover);
}

.divider {
    position: relative;
    text-align: center;
    margin-bottom: 1.5rem;
}

.divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--border-color);
    z-index: 1;
}

.divider span {
    background-color: var(--bg-white);
    padding: 0 10px;
    color: #9ca3af;
    font-size: 0.875rem;
    position: relative;
    z-index: 2;
}

.btn-secondary {
    width: 100%;
    padding: 0.875rem;
    background-color: var(--light-blue);
    color: var(--primary-blue);
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s;
    margin-bottom: 2rem;
}

.btn-secondary:hover {
    background-color: var(--light-blue-hover);
}

.register-link {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.register-link a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
}

.login-footer {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.login-footer .footer-links a {
    color: var(--primary-blue);
    text-decoration: none;
    margin-left: 1rem;
}

/* Right Panel Styles */
.login-right {
    background: linear-gradient(135deg, #1668e3, #2284ff);
    color: white;
    position: relative;
    overflow: hidden;
}

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

/* Mobile Responsiveness */
@media (max-width: 900px) {
    body {
        overflow-y: auto;
    }

    .login-container {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 100vh;
    }

    .login-left {
        order: 2; /* Move form below branding on mobile */
        padding: 3rem 1.5rem;
    }

    .login-right {
        order: 1;
        aspect-ratio: 1139 / 726;
    }

    .login-footer {
        position: relative;
        bottom: 0;
        left: 0;
        right: 0;
        margin-top: 3rem;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .login-footer .footer-links a {
        margin: 0 0.5rem;
    }
}


.form-subtitle {
    color: #6b7280;
    font-size: 0.92rem;
    margin: -0.5rem 0 1.25rem;
    line-height: 1.5;
}

.form-status {
    background: #ecfdf3;
    border: 1px solid #a6f4c5;
    color: #067647;
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.25rem;
}

.form-error {
    background: #fef3f2;
    border: 1px solid #fecdca;
    color: #b42318;
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.25rem;
}
