*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f1f5f9;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #334155;
}

/* ── SPLIT LAYOUT ── */
.login-wrap {
    display: flex;
    width: 860px;
    min-height: 520px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,.08);
    overflow: hidden;
}

/* ── LEFT PANEL ── */
.login-left {
    width: 320px;
    flex-shrink: 0;
    background: #0f172a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 36px;
    text-align: center;
}
.brand-icon {
    width: 56px; height: 56px;
    background: #059669;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 20px;
}
.brand-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #f8fafc;
    letter-spacing: .5px;
    margin-bottom: 6px;
}
.brand-sub {
    font-size: .75rem;
    color: #64748b;
    line-height: 1.6;
    max-width: 200px;
}
.brand-divider {
    width: 40px; height: 2px;
    background: #059669;
    border-radius: 2px;
    margin: 22px auto;
}
.brand-info {
    font-size: .72rem;
    color: #475569;
    line-height: 1.7;
}
.brand-info strong { color: #94a3b8; }

/* ── RIGHT PANEL ── */
.login-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 52px;
}
.form-heading {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}
.form-sub {
    font-size: .8rem;
    color: #94a3b8;
    margin-bottom: 32px;
}

/* ── ALERT ── */
.alert-error {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff1f2;
    border: 1px solid #fecdd3;
    border-left: 3px solid #ef4444;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: .8rem;
    color: #b91c1c;
    margin-bottom: 22px;
}
.alert-error i { color: #ef4444; flex-shrink: 0; }

/* ── FORM FIELDS ── */
.field-group { margin-bottom: 20px; }
.field-label {
    display: block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 7px;
}
.field-wrap { position: relative; }
.field-wrap i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #cbd5e1;
    font-size: .82rem;
    pointer-events: none;
    transition: color .15s;
}
.field-input {
    width: 100%;
    padding: 10px 14px 10px 40px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: .9rem;
    font-family: inherit;
    color: #0f172a;
    background: #f8fafc;
    transition: border-color .15s, box-shadow .15s;
    outline: none;
}
.field-input::placeholder { color: #cbd5e1; }
.field-input:focus {
    border-color: #059669;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(5,150,105,.1);
}
.field-input:focus ~ i { color: #059669; }

/* ── SUBMIT ── */
.btn-submit {
    width: 100%;
    padding: 11px;
    margin-top: 8px;
    background: #059669;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: .9rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background .18s, box-shadow .18s;
}
.btn-submit:hover {
    background: #047857;
    box-shadow: 0 4px 12px rgba(5,150,105,.2);
}
.btn-submit:active { transform: translateY(1px); }

/* ── FOOTER ── */
.form-footer {
    margin-top: 28px;
    font-size: .7rem;
    color: #cbd5e1;
    text-align: center;
}
.form-footer strong { color: #059669; }

/* ── RESPONSIVE ── */
@media (max-width: 680px) {
    .login-wrap { flex-direction: column; width: 100%; min-height: auto; border-radius: 0; box-shadow: none; }
    .login-left  { width: 100%; padding: 32px 24px; }
    .login-right { padding: 32px 24px; }
}