/* ============================================
   LOGIN — kartu tengah bersih (fokus email + password + Google)
   ============================================ */
#login-container { color-scheme: light !important; }

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(160deg, #f0fdf4 0%, #f1f5f9 55%, #eef2ff 100%);
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border: 1px solid #e9eef4;
    border-radius: 18px;
    box-shadow: 0 18px 50px -12px rgba(15, 23, 42, 0.18);
    padding: 38px 34px 34px;
    animation: loginIn 0.4s ease both;
}

@keyframes loginIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-brand { display: flex; justify-content: center; align-items: center; margin-bottom: 16px; }
.login-brand-img { display: block; height: 46px; width: auto; max-width: 100%; object-fit: contain; }
.login-brand-img.is-icon { height: 56px; }

.login-title {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}
.login-sub {
    text-align: center;
    font-size: 14px;
    color: #64748b;
    margin: 6px 0 24px;
}

/* ---------- Google ---------- */
.google-wrap #google-btn {
    display: flex;
    justify-content: center;
    min-height: 44px;
}
.login-divider {
    position: relative;
    text-align: center;
    margin: 20px 0 4px;
}
.login-divider::before {
    content: '';
    position: absolute;
    left: 0; right: 0; top: 50%;
    height: 1px;
    background: #e2e8f0;
}
.login-divider span {
    position: relative;
    background: #ffffff;
    padding: 0 12px;
    font-size: 12px;
    color: #94a3b8;
}

/* ---------- Form ---------- */
.login-form { margin-top: 18px; }

.input-group { margin-bottom: 16px; }
.input-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 7px;
}

.login-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 14px;
    color: #0f172a;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.login-input::placeholder { color: #94a3b8; }
.login-input:focus {
    outline: none;
    border-color: #15803d;
    box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.12);
}

.pwd-wrap { position: relative; }
.pwd-wrap .login-input { padding-right: 44px; }
.toggle-password {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.toggle-password:hover { color: #15803d; background: #f1f5f9; }

.btn-login {
    width: 100%;
    margin-top: 6px;
    padding: 13px;
    background: #15803d;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
.btn-login:hover { background: #166534; }
.btn-login:disabled { opacity: 0.7; cursor: default; }

@media (max-width: 480px) {
    .login-card { padding: 30px 22px 26px; border-radius: 14px; }
}
