.auth-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 20px;
  background: radial-gradient(ellipse at top, rgba(108,92,231,0.12), transparent 60%);
}

.checkbox-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-muted);
  cursor: pointer;
}
.checkbox-line input[type="checkbox"] {
  margin-top: 2px;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  accent-color: var(--primary);
  cursor: pointer;
}
.checkbox-line a { color: var(--primary); text-decoration: none; }
.checkbox-line a:hover { text-decoration: underline; }

.legal-links-inline {
  text-align: center;
  font-size: 12px;
  color: var(--text-faint2);
  margin: 0;
}
.legal-links-inline a { color: var(--text-muted); text-decoration: none; }
.legal-links-inline a:hover { color: var(--primary); }
.legal-links-inline .sep { margin: 0 8px; opacity: 0.6; }

.auth-box {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 36px 32px;
}

.auth-brand {
  display: block;
  text-align: center;
  margin-bottom: 18px;
  text-decoration: none;
}

/* Logo bulat + animasi ngambang di atas nama brand - diambil dari asset.logo (setting.js) */
.auth-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}
.auth-logo-ring {
  position: relative;
  display: inline-block;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  animation: authLogoFloat 3.2s ease-in-out infinite;
}
.auth-logo-ring::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 46px;
  height: 10px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(0,0,0,0.35), transparent 70%);
  border-radius: 50%;
  animation: authLogoShadow 3.2s ease-in-out infinite;
}
.auth-logo-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--border);
  box-shadow: 0 10px 24px rgba(108, 92, 231, 0.28), 0 0 0 4px rgba(108, 92, 231, 0.08);
}
@keyframes authLogoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes authLogoShadow {
  0%, 100% { opacity: 0.55; transform: translateX(-50%) scale(1); }
  50% { opacity: 0.25; transform: translateX(-50%) scale(0.75); }
}

/* Toggle show/hide password (ikon mata) - dipakai di login & register */
.password-field {
  position: relative;
  display: flex;
  align-items: center;
}
.password-field input {
  width: 100%;
  padding-right: 42px;
}
.password-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  color: #7d81a0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: color .15s ease;
}
.password-toggle:hover { color: var(--primary); }
.password-toggle svg { width: 19px; height: 19px; }
.password-toggle .icon-eye-off { display: none; }
.password-toggle.is-visible .icon-eye { display: none; }
.password-toggle.is-visible .icon-eye-off { display: block; }

.auth-box h1 { text-align: center; font-size: 24px; margin-bottom: 6px; }
.auth-sub { text-align: center; color: var(--text-muted); font-size: 14px; margin-bottom: 24px; }

.auth-box form { display: flex; flex-direction: column; gap: 6px; }
.auth-box label { font-size: 13px; color: var(--text-secondary); margin-top: 10px; }
.auth-box input {
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 14px;
  outline: none;
}
.auth-box input:focus { border-color: var(--primary); }

.btn-block { width: 100%; text-align: center; border: none; cursor: pointer; margin-top: 18px; }

.auth-footer-link { text-align: center; margin-top: 18px; font-size: 13px; color: var(--text-muted); }
.auth-footer-link a { color: var(--primary); text-decoration: none; }

/* Divider "atau" + tombol Login Google - UPGRADE Bagian 2 */
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--text-faint2); font-size: 12px; text-transform: uppercase; letter-spacing: 0.4px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.btn-google {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #fff;
  color: #1f1f1f;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: opacity .15s ease;
}
.btn-google:hover { opacity: 0.9; }
.btn-google svg { width: 18px; height: 18px; flex-shrink: 0; }

.alert-box { padding: 10px 14px; border-radius: 10px; font-size: 13px; margin-bottom: 8px; }
.alert-error { background: rgba(255,82,82,0.12); color: #ff8b8b; border: 1px solid rgba(255,82,82,0.35); }
.alert-success { background: rgba(0,206,201,0.12); color: #6ff0eb; border: 1px solid rgba(0,206,201,0.35); }

/* Placeholder dashboard/admin */
.placeholder-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.placeholder-box { max-width: 520px; width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 36px; text-align: center; }
.placeholder-box h1 { margin: 10px 0; font-size: 24px; }
.placeholder-box p { color: var(--text-muted); font-size: 14px; margin-bottom: 8px; }
.placeholder-box .muted { font-size: 13px; }
.kv { text-align: left; margin: 22px 0; border-top: 1px solid var(--border); padding-top: 16px; }
.kv div { display: flex; justify-content: space-between; padding: 8px 0; font-size: 13px; word-break: break-all; }
.kv span { color: var(--text-muted); }

@media (max-width: 480px) {
  .auth-box, .placeholder-box { padding: 26px 20px; }
}
