* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    background: var(--brand-blue);
    color: var(--text-light);
    font-family: var(--sans-font);
}

.login-wrap {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

/* Left panel — city visual */
.login-art {
    background: #020224;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 60px;
}

.login-art::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(2, 2, 48, 0.4) 0%, rgba(2, 2, 48, 0.9) 100%), 
                url('https://images.unsplash.com/photo-1483653364400-eedcfb9f1f88?w=1200&auto=format&fit=crop') center/cover no-repeat;
}

.login-art .art-brand {
    position: relative;
    z-index: 1;
    font-family: var(--serif-font);
    font-size: 2.2rem;
    font-weight: 300;
    color: #fff;
    letter-spacing: 3px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.login-art .art-tagline {
    position: relative;
    z-index: 1;
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.6;
    max-width: 400px;
}

/* Right panel — form */
.login-form-panel {
    background: #03032d;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
}

.login-box {
    width: 100%;
    max-width: 420px;
}

.login-box h1 {
    font-family: var(--serif-font);
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 12px;
    color: white;
}

.login-box .sub {
    color: rgba(255,255,255,0.5);
    font-size: 1rem;
    font-weight: 300;
    margin-bottom: 40px;
}

.form-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 10px;
    display: block;
    text-transform: uppercase;
}

.form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 4px;
    padding: 14px 16px;
    font-size: 0.95rem;
    width: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-control:focus {
    outline: none;
    border-color: var(--brand-gold);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    box-shadow: none;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.input-icon-wrap {
    position: relative;
}

.input-icon-wrap .bi {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.3);
    font-size: 1.1rem;
    pointer-events: none;
}

.input-icon-wrap .form-control {
    padding-left: 48px;
    padding-right: 48px;
}

.toggle-pw {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
    transition: all 0.2s;
}

.toggle-pw:hover {
    color: var(--brand-gold);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(197, 160, 89, 0.3);
}

.btn-signin {
    width: 100%;
    background: var(--brand-gold);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 15px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 15px;
}

.btn-signin:hover {
    background: var(--brand-gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn-signin:active {
    transform: translateY(0);
}

.divider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 30px 0;
    color: rgba(255,255,255,0.2);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.divider::before, .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.08);
}

.remember-forgot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.remember-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    font-weight: 300;
    cursor: pointer;
}

.remember-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--brand-gold);
    cursor: pointer;
}

.forgot-link {
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    text-decoration: none;
    font-weight: 300;
    transition: color 0.3s;
}

.forgot-link:hover {
    color: var(--brand-gold);
}

.register-row {
    text-align: center;
    margin-top: 35px;
    color: rgba(255,255,255,0.4);
    font-size: 0.9rem;
    font-weight: 300;
}

.register-row a {
    color: var(--brand-gold);
    text-decoration: none;
    font-weight: 500;
    margin-left: 5px;
}

.register-row a:hover {
    text-decoration: underline;
}

.alert-error {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.2);
    border-radius: 4px;
    color: #f87171;
    padding: 14px 16px;
    font-size: 0.9rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.field-wrap {
    margin-bottom: 22px;
}

.field-error {
    color: #f87171;
    font-size: 0.8rem;
    margin-top: 8px;
    display: block;
}
.toggle-pw .bi {
    position: relative;
    top: unset;
    left: unset;
    transform: unset;
}
/* Responsive */
@media (max-width: 991px) {
    .login-wrap {
        grid-template-columns: 1fr;
    }

    .login-art {
        display: none;
    }

    .login-form-panel {
        padding: 60px 20px;
        min-height: 100vh;
    }
}
