/* Split layout */
.login-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - 120px); /* header + footer space */
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.3) 100%), url('../img/login-bg.png');
    background-size: cover;
    background-position: center;
}

.login-left {
    display: flex;
    margin-top: 60px;
    align-items: stretch;
    justify-content: center;
    background: transparent;
}

.login-left-inner {
    width: 100%;
    max-width: 520px;
    padding: 40px 32px;
    margin-left: 8vw; /* push content a bit from left like the reference */
    display: flex;
    flex-direction: column;
}

.login-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.brand img {
    height: 32px;
    width: auto;
}

.top-cta {
    margin-top: 10px;
    font-size: 0.95rem;
    color: #e5e7eb;
}

.top-cta a { 
    color: #60a5fa; 
    text-decoration: none;
    transition: all 0.3s ease;
}
.top-cta a:hover { 
    color: #007bff;
    text-decoration: none; 
}

.login-content { margin-top: 24px; }

.login-heading {
    font-size: 2.2rem;
    font-weight: 600;
    margin: 0 0 8px;
    color: #ffffff;
}

.brand-link { 
    color: #60a5fa; 
    text-decoration: none; 
    transition: all 0.3s ease;
}
.brand-link:hover { 
    color: #007bff; 
    text-decoration: none; 
}

.login-subtitle {
    color: #d1d5db;
    margin: 0 0 24px;
    max-width: 480px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.input-group { display: flex; flex-direction: column; gap: 6px; }

.password-wrap { position: relative; }
.password-wrap .input-field { padding-right: 44px; }
.toggle-pass {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.input-field {
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    background: #f9fafb;
}

.form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 4px 0 2px;
}

.remember-me { display: inline-flex; align-items: center; gap: 8px; color: #e5e7eb; }
.forgot-link { 
    color: #60a5fa; 
    text-decoration: none; 
    transition: all 0.3s ease;
}
.forgot-link:hover { 
    color: #007bff;
    text-decoration: none; 
}

.form-errors { color: #dc2626; font-size: 0.95rem; }

.login-btn {
    width: 100%;
    padding: 12px 16px;
    background: linear-gradient(90deg, #26a8ff 0%, #1d4ed8 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(29, 78, 216, 0.25);
}
.login-btn:hover { filter: brightness(0.95); }

.terms {
    margin-top: 16px;
    color: #9ca3af;
    font-size: 0.9rem;
}
.terms a { 
    color: #60a5fa; 
    text-decoration: none; 
    transition: all 0.3s ease;
}
.terms a:hover { 
    color: #007bff;
    text-decoration: none; 
}

.login-right {
    background: transparent;
    min-height: 50vh;
}

/* Responsive */
@media (max-width: 900px) {
    .login-split { grid-template-columns: 1fr; }
    .login-right { display: none; }
    .login-left-inner { margin: 0 auto; padding: 32px 20px; }
}
/* Error List Styling */
.errorlist {
    color: #ef4444; /* Tailwind Red-500 */
    list-style: none;
    padding: 8px;
    margin: 4px 0 12px;
    font-size: 0.9rem;
    font-weight: 600;
    background-color: rgba(254, 226, 226, 0.1); /* Red tint bg */
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 6px;
}

.errorlist li {
    display: flex;
    align-items: center;
    gap: 8px;
}
