/* ===== SSO Klasq - Gaya Halaman ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 45%, #c7d2fe 100%);
    position: relative;
    overflow-x: hidden;
}

/* blob dekoratif lembut */
.blob { position: fixed; border-radius: 50%; filter: blur(90px); z-index: 0; }
.blob-1 { width: 380px; height: 380px; background: radial-gradient(circle at 30% 30%, #a5b4fc, #818cf8); opacity: .35; top: -120px; left: -100px; }
.blob-2 { width: 320px; height: 320px; background: radial-gradient(circle at 60% 40%, #fbcfe8, #f9a8d4); opacity: .30; bottom: -120px; right: -80px; }

.card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    background: rgba(255,255,255,.82);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    backdrop-filter: blur(24px) saturate(180%);
    border: 1.5px solid rgba(255,255,255,.9);
    border-radius: 24px;
    padding: 40px 34px;
    box-shadow: 0 24px 60px rgba(30,41,59,.14);
    text-align: center;
    color: #0f172a;
}

.logo-wrap {
    width: 84px; height: 84px;
    margin: 0 auto 16px;
    border-radius: 24px;
    background: linear-gradient(145deg, #4f46e5, #7c3aed);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 34px; font-weight: 800;
    box-shadow: 0 10px 24px rgba(79,70,229,.35);
    overflow: hidden;
}
.logo-wrap img { width: 100%; height: 100%; object-fit: cover; }

h1 { font-size: 24px; font-weight: 800; letter-spacing: .3px; }
.subtitle { font-size: 13px; color: #64748b; margin: 6px 0 26px; }
.role-line { font-size: 12px; color: #475569; margin-bottom: 22px; }

/* Tombol Google */
.btn-google {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    width: 100%; padding: 13px 16px;
    background: #fff; color: #1f2937;
    border: 1px solid #d1d5db; border-radius: 14px;
    font-weight: 600; font-size: 15px; font-family: inherit;
    cursor: pointer; text-decoration: none;
    transition: box-shadow .18s ease, transform .12s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,.05);
}
.btn-google:hover { box-shadow: 0 6px 18px rgba(0,0,0,.12); transform: translateY(-1px); }
.btn-google:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-google svg { width: 20px; height: 20px; flex-shrink: 0; }

.btn-secondary {
    display: block; width: 100%; padding: 13px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff; text-decoration: none;
    border-radius: 14px; font-weight: 700; font-size: 14px;
    box-shadow: 0 10px 24px rgba(99,102,241,.35);
    transition: transform .12s ease;
}
.btn-secondary:hover { transform: translateY(-1px); }

.btn-danger {
    display: block; margin-top: 12px; padding: 10px;
    background: transparent; color: #b91c1c;
    border: 1px solid #fecaca; border-radius: 10px;
    font-weight: 600; font-size: 12px; text-decoration: none;
}
.btn-danger:hover { background: #fef2f2; }

/* Form NIS / Email */
.sso-form { text-align: left; }
.sso-form label { display: block; font-size: 12px; font-weight: 600; color: #475569; margin-bottom: 6px; }
.sso-form input {
    width: 100%; padding: 13px 14px;
    border: 1px solid #d1d5db; border-radius: 12px;
    font-size: 15px; font-family: inherit; color: #0f172a;
    box-sizing: border-box; margin-bottom: 14px; outline: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.sso-form input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99,102,241,.15);
}
.btn-login {
    width: 100%; padding: 13px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff; border: none; border-radius: 12px;
    font-weight: 700; font-size: 15px; font-family: inherit; cursor: pointer;
    transition: transform .12s ease, box-shadow .18s ease;
    box-shadow: 0 10px 24px rgba(99,102,241,.3);
}
.btn-login:hover { transform: translateY(-1px); }
.btn-login:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* Pesan / info / error */
.alert {
    border-radius: 12px; padding: 12px 14px;
    font-size: 13px; line-height: 1.5; text-align: left; margin-bottom: 18px;
}
.alert-error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.alert-info  { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }
.alert-info code { background: #dbeafe; padding: 1px 6px; border-radius: 5px; font-size: 12px; }

/* info kecil */
.note { font-size: 11px; color: #94a3b8; margin-top: 16px; line-height: 1.5; }
.foot { margin-top: 20px; font-size: 11px; color: #94a3b8; z-index: 1; position: relative; }

.grid-btn { margin-top: 14px; display: grid; gap: 10px; }

@media (max-width: 480px) {
    body { justify-content: flex-start; }
    .card { padding: 30px 22px; }
}
