/* ═══════════════════════════════════════════
   Login Page — Split-screen layout
   ═══════════════════════════════════════════ */

* { box-sizing: border-box; }

.login-split {
    min-height: 100vh;
    display: flex;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: #eef1f5;
}

/* ===== LEFT PANEL — navy brand ===== */
.login-brand {
    flex: 1;
    background: linear-gradient(160deg, #0e2038 0%, #0a1a2e 45%, #06121d 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 56px 60px;
}

.login-brand .glow-1 {
    position: absolute;
    top: -120px;
    right: -80px;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,181,188,.22), transparent 70%);
    pointer-events: none;
}

.login-brand .glow-2 {
    position: absolute;
    bottom: -140px;
    left: -100px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(65,167,242,.16), transparent 70%);
    pointer-events: none;
}

/* Logo */
.login-brand-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
}

.login-brand-logo .logo-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #00b5bc;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    box-shadow: 0 4px 22px rgba(0,181,188,.5);
}

.login-brand-logo .logo-circle span {
    color: #fff;
    font-weight: 900;
    font-size: 25px;
    line-height: 1;
}

.login-brand-logo .logo-text-main {
    font-weight: 800;
    font-size: 26px;
    line-height: 1;
    color: #fff;
    letter-spacing: -.02em;
}

.login-brand-logo .logo-text-sub {
    font-size: 10px;
    letter-spacing: .3em;
    font-weight: 600;
    color: rgba(255,255,255,.45);
    margin-top: 5px;
}

/* Tagline */
.login-tagline {
    position: relative;
    max-width: 440px;
}

.login-tagline h2 {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 18px;
    line-height: 1.18;
    letter-spacing: -.025em;
}

.login-tagline p {
    font-size: 15px;
    color: rgba(255,255,255,.55);
    line-height: 1.7;
    margin: 0;
}

/* Feature chips */
.login-chips {
    display: flex;
    gap: 10px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.login-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 8px;
    padding: 9px 14px;
}

.login-chip span {
    font-size: 12.5px;
    color: rgba(255,255,255,.75);
    font-weight: 500;
}

/* Powered by */
.login-powered {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.login-powered .label {
    font-size: 11px;
    color: rgba(255,255,255,.35);
    font-weight: 500;
}

.login-powered .company {
    font-size: 14px;
    color: rgba(255,255,255,.7);
    font-weight: 800;
    letter-spacing: .02em;
}

/* ===== RIGHT PANEL — form ===== */
.login-form-panel {
    width: 520px;
    flex: none;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 48px 64px;
}

.login-form-inner {
    width: 100%;
    max-width: 360px;
}

/* Client logo */
.login-client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f1f4f8;
}

.login-client-logo img {
    max-height: 50px;
    max-width: 200px;
    object-fit: contain;
}

/* Welcome text */
.login-welcome h1 {
    font-size: 26px;
    font-weight: 800;
    color: #0e2038;
    margin: 0 0 8px;
    letter-spacing: -.02em;
}

.login-welcome p {
    font-size: 13.5px;
    color: #94a3b8;
    margin: 0 0 36px;
}

.login-welcome .version {
    color: #cbd5e1;
}

/* Fields */
.login-field {
    margin-bottom: 18px;
}

.login-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
}

.login-field .field-box {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #dde3ea;
    border-radius: 9px;
    padding: 13px 15px;
    background: #fff;
    transition: border-color .12s, box-shadow .12s;
}

.login-field .field-box:focus-within {
    border-color: #00b5bc;
    box-shadow: 0 0 0 3px rgba(0,181,188,.12);
}

.login-field .field-box input {
    border: none;
    outline: none;
    width: 100%;
    font-family: inherit;
    font-size: 14px;
    color: #1e2b3d;
    background: transparent;
}

.login-field .field-box input::placeholder {
    color: #aab4c0;
}

.login-field .field-box .field-icon {
    flex: none;
    color: #94a3b8;
}

.login-field .field-box .toggle-pw {
    flex: none;
    color: #94a3b8;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    display: flex;
}

.login-field .field-box .toggle-pw:hover {
    color: #64748b;
}

/* Validation error */
.login-field .text-danger {
    font-size: 12px;
    margin-top: 6px;
    display: block;
}

/* Remember + forgot row */
.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 26px;
}

.login-options .remember {
    display: flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
}

.login-options .remember input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    border: 1.5px solid #cbd5e1;
    accent-color: #00b5bc;
}

.login-options .remember span {
    font-size: 13px;
    color: #475569;
    font-weight: 500;
}

.login-options .forgot {
    font-size: 13px;
    color: #00b5bc;
    font-weight: 600;
    text-decoration: none;
    transition: color .12s;
}

.login-options .forgot:hover {
    color: #00838a;
}

/* Submit button */
.login-submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    background: #00b5bc;
    color: #fff;
    border: none;
    border-radius: 9px;
    padding: 14px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,181,188,.32);
    font-family: inherit;
    transition: background .12s;
    margin-bottom: 32px;
}

.login-submit:hover {
    background: #00a3a9;
}

/* App stores */
.login-stores {
    display: flex;
    align-items: center;
    gap: 12px;
}

.login-store {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 9px;
    background: #0e2038;
    border-radius: 9px;
    padding: 9px 14px;
    cursor: pointer;
    text-decoration: none;
    transition: transform .12s;
}

.login-store:hover {
    transform: translateY(-1px);
}

.login-store .store-label-small {
    font-size: 8px;
    color: rgba(255,255,255,.6);
    line-height: 1.1;
}

.login-store .store-label-big {
    font-size: 13px;
    color: #fff;
    font-weight: 600;
    line-height: 1.1;
}

/* ===== RESPONSIVE — mobile collapses to single column ===== */
@media (max-width: 900px) {
    .login-split {
        flex-direction: column;
    }

    .login-brand {
        padding: 36px 28px;
        min-height: auto;
    }

    .login-tagline h2 {
        font-size: 24px;
    }

    .login-form-panel {
        width: 100%;
        padding: 36px 28px;
    }
}
