/* Tampilan halaman login & verifikasi Super Admin.
   Variabel warna (--primary, --primary-dark, --primary-light, --aksen-rgb)
   diisi inline oleh halaman agar mengikuti pengaturan tampilan login. */

* { box-sizing: border-box; }

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, #0b1220 0%, #111c33 55%, #1e293b 100%);
    min-height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    color: #0f172a;
    position: relative;
    overflow-x: hidden;
}

.bg-shape {
    position: fixed;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.22;
    z-index: 0;
    pointer-events: none;
}

.shape-1 { width: 420px; height: 420px; background: var(--primary); top: -130px; left: -110px; }
.shape-2 { width: 380px; height: 380px; background: #0ea5e9; bottom: -140px; right: -110px; }

.login-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 440px;
    margin: auto;
}

.login-card {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 25px 50px -12px rgba(2, 6, 23, 0.7);
    padding: 38px 34px;
}

.login-header { text-align: center; margin-bottom: 24px; }

.logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    box-shadow: 0 10px 25px -5px rgba(var(--aksen-rgb), 0.25), 0 0 0 4px rgba(var(--aksen-rgb), 0.12);
    margin-bottom: 14px;
    padding: 8px;
}

.logo-wrap img { max-width: 100%; max-height: 100%; object-fit: contain; }

.login-header h1 {
    font-size: 21px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px 0;
    letter-spacing: -0.4px;
}

.login-header p {
    font-size: 12.5px;
    font-weight: 500;
    color: #64748b;
    margin: 0;
    line-height: 1.45;
}

.badge-role {
    display: inline-block;
    background: #0f172a;
    color: #e2e8f0;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin-top: 10px;
}

.custom-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 14px;
    border-radius: 12px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.45;
    margin-bottom: 18px;
}

.info-box {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e3a8a;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 12.5px;
    line-height: 1.5;
    margin-bottom: 18px;
}

.form-group-custom { margin-bottom: 16px; position: relative; }

.form-label-custom {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.input-icon-group { position: relative; display: flex; align-items: center; }

.input-icon-group .icon-left {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 15px;
    pointer-events: none;
}

.input-icon-group .form-control-custom {
    width: 100%;
    height: 46px;
    padding: 10px 42px 10px 42px;
    font-size: 14px;
    font-weight: 500;
    color: #0f172a;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    outline: none;
    transition: all 0.25s ease;
}

.input-icon-group .form-control-custom:focus {
    background: #ffffff;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3.5px rgba(var(--aksen-rgb), 0.15);
}

.input-icon-group .form-control-custom.kode-2fa {
    text-align: center;
    letter-spacing: 6px;
    font-family: ui-monospace, Consolas, "Courier New", monospace;
    font-size: 20px;
    font-weight: 700;
    padding-left: 14px;
}

.btn-toggle-pwd {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px 6px;
    font-size: 15px;
}

.btn-toggle-pwd:hover { color: var(--primary); }

.btn-login-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 48px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    box-shadow: 0 10px 20px -5px rgba(var(--aksen-rgb), 0.35);
    margin-top: 20px;
    transition: all 0.25s ease;
}

.btn-login-submit:hover { filter: brightness(1.08); transform: translateY(-1.5px); }
.btn-login-submit:active { transform: translateY(1px); }

.login-footer { text-align: center; margin-top: 22px; }

.login-footer p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
    font-weight: 500;
}

.login-footer a {
    color: #93c5fd;
    text-decoration: none;
    font-weight: 600;
}

.login-footer a:hover { color: #bfdbfe; text-decoration: underline; }

@media (max-width: 480px) {
    .login-card { padding: 30px 22px; }
    .login-header h1 { font-size: 19px; }
}
