/* ===========================================================
   RSUIN Care — Login Page
   Palette:
   Hijau       #d0e49d
   Hijau Tosca #4da2aa
   Biru        #1e5b84
   Putih       #ffffff
   =========================================================== */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
    background: #ffffff;
    color: #1e3a3f;
}

.login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
}

/* -------------------- Brand panel -------------------- */
.login-brand {
    position: relative;
    overflow: hidden;
    background-image: url('../dist/img/rshaji-2.jpeg');
    background-size: cover;
    background-position: center;
    color: #ffffff;
    padding: 48px 56px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Color-tinted overlay so the photo stays visible but text is legible */
.login-brand::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(30, 91, 132, 0.88) 0%, rgba(77, 162, 170, 0.78) 70%);
    z-index: 0;
}

.login-brand::after {
    content: "";
    position: absolute;
    bottom: -18%;
    left: -15%;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: #d0e49d;
    opacity: 0.15;
    z-index: 0;
}

.brand-mark {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-mark img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    background: #ffffff;
    border-radius: 12px;
    padding: 6px;
}

.brand-mark span {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.2px;
}

.brand-copy {
    position: relative;
    z-index: 2;
    max-width: 420px;
}

.brand-copy h1 {
    font-size: 32px;
    line-height: 1.25;
    margin: 0 0 16px;
    font-weight: 700;
    margin-top: 20px;
}

.brand-copy p {
    font-size: 15px;
    line-height: 1.6;
    color: #eaf4f2;
    margin: 0;
}

.brand-foot {
    position: relative;
    z-index: 2;
    font-size: 13px;
    color: #d7ebe5;
}

/* -------------------- Form panel -------------------- */
.login-form-panel {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 32px;
    background: #ffffff;
}

/* Decorative accents — echo the brand panel's circles, kept subtle */
.login-form-panel::before {
    content: "";
    position: absolute;
    top: -80px;
    right: -80px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: #d0e49d;
    opacity: 0.35;
    z-index: 0;
}

.login-form-panel::after {
    content: "";
    position: absolute;
    bottom: -100px;
    right: 40px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 24px solid #4da2aa;
    opacity: 0.12;
    z-index: 0;
}

.login-form-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 380px;
}

.login-form-inner h2 {
    font-size: 26px;
    font-weight: 700;
    color: #1e5b84;
    margin: 0 0 8px;
}

.login-form-inner .lede {
    font-size: 14px;
    color: #5c7a80;
    margin: 0 0 28px;
    line-height: 1.5;
}

.field {
    margin-bottom: 20px;
    position: relative;
}

.field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1e5b84;
    margin-bottom: 6px;
}

.input100 {
    width: 100%;
    padding: 13px 16px;
    font-size: 15px;
    border: 1.5px solid #cfe3e0;
    border-radius: 10px;
    outline: none;
    background: #f7fbfa;
    color: #1e3a3f;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.input100::placeholder {
    color: #9db3b0;
}

.input100:focus {
    border-color: #4da2aa;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(77, 162, 170, 0.15);
}

.field-pass {
    display: flex;
    flex-direction: column;
}

.field-pass .input100 {
    padding-right: 90px;
}

.toggle-pass {
    position: absolute;
    right: 6px;
    bottom: 6px;
    top: auto;
    background: #d0e49d;
    border: none;
    color: #1e5b84;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 7px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.toggle-pass:hover {
    background: #c1da84;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    margin-top: 6px;
    background: #1e5b84;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
}

.submit-btn:hover {
   
    background: #174665;
}

.submit-btn:active {
    transform: translateY(1px);
}

.form-note {
    font-size: 13px;
    color: #6b8a87;
    text-align: center;
    margin-top: 22px;
    line-height: 1.5;
}

/* -------------------- Responsive -------------------- */
@media (max-width: 860px) {
    html, body {
        height: 100%;
        overflow: hidden;
    }

    .login-shell {
        display: flex;
        flex-direction: column;
        grid-template-columns: unset;
        height: 100vh;
        height: 100dvh;
        /* dvh handles mobile browser chrome better; fallback above */
    }

    .login-brand {
        flex: 0 0 320px;
        /* fallback for browsers without dvh */
        flex: 0 0 25dvh;
        min-height: 0;
        padding: 24px 24px;
        justify-content: flex-end;
    }

    .brand-mark img {
        width: 38px;
        height: 38px;
    }

    .brand-mark span {
        font-size: 13px;
    }

    .brand-copy h1 {
        font-size: 18px;
        margin-bottom: 0;
    }

    .brand-copy p,
    .brand-foot {
        display: none;
    }

    .login-brand::after {
        width: 160px;
        height: 160px;
        bottom: -90px;
        left: -60px;
    }

    .login-form-panel {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        padding: 24px 24px;
        align-items: flex-start;
    }

    .login-form-inner {
        margin: auto 0;
    }

    .login-form-panel::before {
        width: 140px;
        height: 140px;
        top: -50px;
        right: -50px;
    }

    .login-form-panel::after {
        width: 100px;
        height: 100px;
        border-width: 16px;
        bottom: -60px;
        right: 20px;
    }
}