/* ============================================================
   INITECH LOGIN — split layout
   ============================================================ */

/* Remove any body/html overflow that fights the split layout */
body:has(.initech-login) {
    overflow: hidden;
    height: 100vh;
}

.initech-login {
    display: flex;
    height: 100vh;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    overflow: hidden;
}

/* Forgot password — below Sign In button */
.il-forgot-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #94a3b8;
    margin-top: 2px;
}

.il-forgot {
    font-size: 12px;
    font-weight: 600;
    color: #1d3557;
    text-decoration: none;
    transition: color .15s;
}

    .il-forgot:hover {
        color: #e53935;
        text-decoration: underline;
    }

/* ── Left dark panel ── */
.il-left {
    width: 480px;
    flex-shrink: 0;
    background: linear-gradient(160deg, #0d1f3c 0%, #1a3a6b 60%, #1e2d5a 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 44px 52px;
    color: #fff;
    overflow: hidden;
}

.il-left-inner {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.il-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.il-brand-name {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.01em;
}

.il-brand-sub {
    font-size: 12px;
    color: rgba(255,255,255,.5);
    margin-top: 3px;
}

.il-hero-title {
    font-size: 34px;
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
    margin-bottom: 14px;
    letter-spacing: -.02em;
}

.il-hero-desc {
    font-size: 14px;
    color: rgba(255,255,255,.6);
    line-height: 1.7;
}

.il-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 4px;
}

    .il-features li {
        display: flex;
        align-items: center;
        gap: 12px;
        font-size: 13px;
        color: rgba(255,255,255,.72);
    }

        .il-features li svg {
            color: rgba(255,255,255,.45);
            flex-shrink: 0;
        }

.il-left-footer {
    font-size: 12px;
    color: rgba(255,255,255,.3);
}

/* ── Right panel ── */
.il-right {
    flex: 1;
    background: #f0f3f9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    overflow-y: auto;
}

/* ── Card ── */
.il-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 32px rgba(0,0,0,.09);
    padding: 42px 44px 38px;
    width: 100%;
    max-width: 430px;
}

/* Logo block */
.il-card-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}

.il-card-logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.il-card-logo-name {
    font-size: 15px;
    font-weight: 800;
    color: #1d3557;
    line-height: 1.1;
    letter-spacing: -.01em;
}

.il-card-logo-tag {
    font-size: 10px;
    color: #94a3b8;
    line-height: 1.3;
}

/* Headings */
.il-card-title {
    font-size: 24px;
    font-weight: 800;
    color: #0d1f3c;
    margin-bottom: 6px;
    letter-spacing: -.02em;
}

.il-card-desc {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 30px;
    line-height: 1.5;
}

/* Error banner */
.il-error {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff1f2;
    border: 1px solid #fecdd3;
    border-radius: 9px;
    padding: 10px 14px;
    margin-bottom: 22px;
    font-size: 12px;
    color: #be123c;
    line-height: 1.4;
}

/* Form layout */
.il-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.il-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

    .il-field label {
        font-size: 12px;
        font-weight: 700;
        color: #374151;
        letter-spacing: .01em;
    }

/* Input */
.il-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

    .il-input-wrap input {
        width: 100%;
        padding: 11px 42px 11px 40px;
        border: 1.5px solid #e2e8f0;
        border-radius: 10px;
        font-size: 13px;
        font-family: inherit;
        color: #0f172a;
        background: #f8fafc;
        transition: border-color .15s, box-shadow .15s, background .15s;
    }

        .il-input-wrap input:focus {
            outline: none;
            border-color: #1d3557;
            box-shadow: 0 0 0 3px rgba(29,53,87,.12);
            background: #fff;
        }

        .il-input-wrap input::placeholder {
            color: #b0bac7;
        }

.il-icon {
    position: absolute;
    left: 13px;
    color: #94a3b8;
    pointer-events: none;
    flex-shrink: 0;
}

.il-eye {
    position: absolute;
    right: 11px;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 4px;
    border-radius: 6px;
}

    .il-eye:hover {
        color: #475569;
        background: #f1f5f9;
    }

/* Submit button */
.il-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: #1d3557;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    margin-top: 4px;
    transition: background .15s, transform .1s;
    letter-spacing: .01em;
}

    .il-submit:hover {
        background: #142847;
    }

    .il-submit:active {
        transform: scale(.98);
    }

/* Demo credentials */
.il-demo-hint {
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.il-demo-label {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: .06em;
}

.il-demo-pills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.il-pill {
    padding: 4px 11px;
    background: #eff6ff;
    color: #1d4ed8;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    border: 1px solid #dbeafe;
    cursor: default;
}

/* Footnote */
.il-footnote {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 22px;
    font-size: 11px;
    color: #94a3b8;
}

/* ── Responsive ── */
@media (max-width: 860px) {
    .il-left {
        width: 380px;
        padding: 36px 36px;
    }

    .il-hero-title {
        font-size: 26px;
    }

    .il-card {
        padding: 36px 32px;
    }
}

@media (max-width: 640px) {
    .il-left {
        display: none;
    }

    .il-right {
        background: #fff;
        padding: 24px 16px;
    }

    .il-card {
        box-shadow: none;
        padding: 28px 20px;
    }
}

/* Eye icon */
.il-eye i {
    font-size: 16px;
    line-height: 1;
}

/* Sign in button states */
.il-submit {
    position: relative;
    box-shadow: 0 2px 8px rgba(29, 53, 87, .25);
}

    .il-submit:hover {
        box-shadow: 0 4px 14px rgba(29, 53, 87, .35);
    }

    .il-submit:focus-visible {
        outline: none;
        box-shadow: 0 0 0 3px rgba(29, 53, 87, .3);
    }

.il-btn-arrow {
    font-size: 16px;
    line-height: 1;
    transition: transform .15s;
}

.il-submit:hover .il-btn-arrow {
    transform: translateX(3px);
}

/* Loading state */
.il-submit.is-loading {
    pointer-events: none;
    opacity: .85;
    cursor: wait;
}

    .il-submit.is-loading .il-btn-arrow {
        display: none;
    }

.il-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, .4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: il-spin .7s linear infinite;
}

.il-submit.is-loading .il-spinner {
    display: inline-block;
}

@keyframes il-spin {
    to {
        transform: rotate(360deg);
    }
}
