/* Login Vendor - gabungan CSS layout dan komponen */
:root {
--ss-blue:#1769aa;
--ss-ink:#25364a;
--ss-muted:#7c8998;
--ss-line:#e6ebf1
}
* {
    box-sizing: border-box
}
html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
}
body {
    font-family: 'Public Sans', Arial, sans-serif;
    background: #f4f7fb;
    color: var(--ss-ink)
}
.login-wrap {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    overflow: hidden;
    background: radial-gradient(circle at top right, #e6f3fd 0, transparent 36%), #f4f7fb
}
.login-card {
    width: 100%;
    max-width: 450px;
    background: #fff;
    border: 1px solid var(--ss-line);
    border-radius: 16px;
    padding: 20px 30px;
    box-shadow: 0 12px 40px rgba(32,58,84,.07)
}
.brand {
    text-align: center;
    margin-bottom: 10px
}
.brand img {
    width: 190px;
    max-width: 100%;
    height: auto
}
.brand p {
    font-size: 13px;
    color: var(--ss-muted);
    margin: 5px 0 0
}
.heading {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px
}
.subheading {
    font-size: 13px;
    color: var(--ss-muted);
    line-height: 1.65;
    margin: 12px 0 12px
}
.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px
}
.form-control {
    width: 100%;
    height: 44px;
    border: 1px solid #dce3eb;
    border-radius: 8px;
    padding: 0 13px;
    font: inherit;
    font-size: 14px;
    outline: none;
    background: #fff
}
.form-control:focus {
    border-color: var(--ss-blue);
    box-shadow: 0 0 0 3px rgba(23,105,170,.1)
}
.field {
    margin-bottom: 13px
}
.password-wrap {
    position: relative
}
.password-wrap .form-control {
    padding-right: 70px
}
.show-pass {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--ss-blue);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer
}
.submit {
    width: 100%;
    height: 44px;
    border: 0;
    border-radius: 8px;
    background: var(--ss-blue);
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    margin-top: 5px
}
.submit:hover {
    background: #10558c
}
.alert {
    padding: 12px 14px;
    border-radius: 8px;
    background: #fff0f0;
    color: #b42318;
    border: 1px solid #ffd8d8;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 13px
}
.links {
    text-align: center;
    margin-top: 15px;
    font-size: 13px;
    color: var(--ss-muted);
    line-height: 1.7
}
.links a {
    color: var(--ss-blue);
    font-weight: 600;
    text-decoration: none
}
.footer {
    text-align: center;
    color: #a0aab7;
    font-size: 11px;
    margin-top: 16px
}

@media(max-height:760px) {
    .login-wrap {
        padding-top: 5px;
        padding-bottom: 5px;
    }
    .login-card {
        padding-top: 14px;
        padding-bottom: 14px;
    }
    .brand img {
        width: 160px;
    }
    .brand {
        margin-bottom: 30px;
    }
    .brand p {
        margin-top: 4px;
    }
    .heading {
        font-size: 22px;
        margin-bottom: 5px;
    }
    .subheading {
        line-height: 1.4;
        margin-bottom: 9px;
    }
    .form-label {
        margin-bottom: 5px;
    }
    .form-control {
        height: 40px;
    }
    .field {
        margin-bottom: 8px;
    }
    .submit {
        height: 40px;
        margin-top: 2px;
    }
    .links {
        margin-top: 9px;
        line-height: 1.5;
    }
    .footer {
        margin-top: 24px;
    }
}

@media(max-width:480px) {
.login-card {
    padding: 18px 20px
}
.brand img {
    width: 170px
}
.heading {
    font-size: 22px
}
}
.ss-password-field {
    position: relative
}
.ss-password-field .form-control {
    padding-right: 48px
}
.ss-password-eye-button {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: #68778a;
    cursor: pointer;
    border-radius: 0 8px 8px 0
}
.ss-password-eye-button:hover {
    color: #0d6efd
}
.ss-password-eye-icon {
    display: block;
    width: 18px;
    height: 18px
}

/* Ikon mata password */
.ss-password-field { position: relative; width: 100%; }
.ss-password-field .form-control { padding-right: 44px; }
.ss-password-eye-button {
    position: absolute; top: 0; right: 0; height: 100%; width: 44px;
    display: flex; align-items: center; justify-content: center;
    border: 0; background: transparent; color: #68778a;
    cursor: pointer; border-radius: 0 8px 8px 0;
}
.ss-password-eye-button:hover { color: var(--ss-blue); }
.ss-password-eye-icon { display: block; width: 18px; height: 18px; }

/* Geser card login sedikit ke atas khusus layar mobile */
@media (max-width: 480px) {
    .login-card {
        transform: translateY(-16px);
    }
}
