/* ===================================================
   SIMKEL – LOGIN  |  Desktop: split  |  Mobile: 1 halaman putih
   =================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── BODY ─────────────────────────────────────────── */
.login-modern {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: linear-gradient(to right, #9d174d 0%, #ec4899 55%, #f9a8d4 100%);
    min-height: 100vh;
    display: flex;
    align-items: stretch;
}

/* ── WRAPPER ──────────────────────────────────────── */
.login-container {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* ── PANEL KIRI – BRANDING ────────────────────────── */
.login-left {
    flex: 1.1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    padding: 48px 40px;
    position: relative;
    overflow: hidden;
}

.login-left::before,
.login-left::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,.07);
}
.login-left::before { width: 400px; height: 400px; top: -120px; right: -120px; }
.login-left::after  { width: 280px; height: 280px; bottom: -80px; left: -80px; }

.brand-box {
    text-align: center;
    position: relative;
    z-index: 1;
}

.logo {
    width: 110px;
    height: 110px;
    object-fit: contain;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 14px rgba(0,0,0,.3));
}

.brand-box h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1.1;
    text-shadow: 0 2px 8px rgba(0,0,0,.25);
}

.brand-box p {
    font-size: .92rem;
    margin-top: 8px;
    opacity: .85;
    line-height: 1.5;
}

.brand-box span {
    display: block;
    margin-top: 4px;
    font-size: .8rem;
    opacity: .6;
    font-style: italic;
}

/* ── PANEL KANAN – FORM ───────────────────────────── */
.login-right {
    flex: 1;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

.login-card {
    width: 100%;
    max-width: 390px;
    background: #fff;
    padding: 36px 34px;
    border-radius: 16px;
    box-shadow: 0 10px 36px rgba(15,45,110,.13);
}

.login-card h2 {
    font-size: 1.45rem;
    font-weight: 700;
    color: #0f2d6e;
    margin-bottom: 20px;
    text-align: center;
}

.form-group {
    margin-bottom: 16px;
}

.form-group input {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 9px;
    font-size: .92rem;
    font-family: inherit;
    color: #1e293b;
    background: #f8fafc;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

.form-group input::placeholder { color: #b0bec5; }

.form-group input:focus {
    border-color: #2563eb;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

.error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #b91c1c;
    border-radius: 8px;
    padding: 10px 13px;
    font-size: .84rem;
    margin-bottom: 16px;
}

.btn-login {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 9px;
    background: linear-gradient(135deg, #9d174d 0%, #ec4899 100%);
    color: #fff;
    font-size: .95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    letter-spacing: .02em;
    box-shadow: 0 4px 14px rgba(190,24,93,.35);
    transition: filter .2s, transform .15s;
}

.btn-login:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.btn-login:active { transform: translateY(0); }

.login-footer {
    text-align: center;
    margin-top: 18px;
    font-size: .84rem;
    color: #64748b;
}

.login-footer p { margin-bottom: 4px; }

.register-link {
    text-decoration: none;
    color: #be185d;
    font-weight: 600;
}

.register-link:hover { text-decoration: underline; }

/* ── TABLET ───────────────────────────────────────── */
@media (max-width: 820px) {
    .login-left { flex: 0 0 40%; padding: 32px 20px; }
    .brand-box h1 { font-size: 1.9rem; }
    .login-card { padding: 28px 22px; }
}

/* ── MOBILE – gradasi atas ke bawah ───────────────── */
@media (max-width: 600px) {

    /* gradasi vertikal atas → bawah */
    .login-modern {
        background: linear-gradient(to bottom, #9d174d 0%, #ec4899 55%, #f9a8d4 100%);
    }

    .login-container {
        flex-direction: column;
        align-items: center;
        padding: 40px 24px 52px;
    }

    /* branding di atas, teks putih di atas gradasi pink */
    .login-left {
        width: 100%;
        flex: none;
        padding: 0 0 28px 0;
        color: #fff;
        border-bottom: 1px solid rgba(255,255,255,.3);
        margin-bottom: 28px;
    }

    .login-left::before,
    .login-left::after { display: none; }

    .logo {
        width: 80px;
        height: 80px;
        filter: drop-shadow(0 2px 8px rgba(0,0,0,.2));
    }

    .brand-box h1 {
        font-size: 1.7rem;
        text-shadow: 0 1px 6px rgba(0,0,0,.2);
        color: #fff;
    }

    .brand-box p {
        color: #fff;
        opacity: .9;
        font-size: .87rem;
    }

    .brand-box span {
        color: #fff;
        opacity: .75;
        font-size: .8rem;
    }

    /* kartu form: putih bersih melayang di atas gradasi */
    .login-right {
        width: 100%;
        flex: none;
        padding: 0;
        background: transparent;
    }

    .login-card {
        max-width: 100%;
        background: #fff;
        padding: 28px 22px;
        border-radius: 16px;
        box-shadow: 0 8px 32px rgba(0,0,0,.18);
    }

    .login-card h2 {
        font-size: 1.2rem;
        text-align: left;
        color: #9d174d;
        margin-bottom: 16px;
    }
}
