/* Halaman login dan daftar: mobile-first, selaras dengan tema aplikasi */
:root { --c-primary: #2563eb; --c-primary-dark: #1d4ed8; --c-muted: #6b7280; --c-border: #e5e7eb; }

body.auth {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: calc(20px + env(safe-area-inset-top, 0px)) 16px calc(20px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(160deg, #1e40af 0%, #2563eb 50%, #3b82f6 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
.auth-wrap { width: 100%; max-width: 420px; }

.auth-brand { text-align: center; color: #fff; margin-bottom: 18px; }
.auth-brand .logo {
  width: 64px; height: 64px; border-radius: 20px; margin-bottom: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .18); font-size: 1.8rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25);
}
.auth-brand h1 { font-size: 1.4rem; font-weight: 700; margin: 0; }
.auth-brand p { margin: 2px 0 0; opacity: .9; font-size: .9rem; }

.auth-card {
  background: #fff; border-radius: 22px; padding: 26px 22px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, .3);
}
.auth-title { font-size: 1.3rem; font-weight: 700; margin: 0 0 4px; color: #111827; }
.auth-sub { color: var(--c-muted); font-size: .9rem; margin-bottom: 20px; }

.auth-card label { font-weight: 600; font-size: .85rem; color: #374151; margin-bottom: 4px; }
.auth-card .form-control { height: 48px; font-size: 16px; border-color: var(--c-border); border-radius: 0 12px 12px 0; }
.auth-card .form-control:focus { border-color: var(--c-primary); box-shadow: 0 0 0 .2rem rgba(37, 99, 235, .15); }
.auth-card .input-group-text {
  width: 44px; justify-content: center; background: #f9fafb; color: var(--c-muted);
  border-color: var(--c-border); border-radius: 12px 0 0 12px;
}
.auth-card .input-group-append .btn-toggle {
  width: 46px; background: #f9fafb; color: var(--c-muted);
  border: 1px solid var(--c-border); border-left: 0; border-radius: 0 12px 12px 0;
}
.auth-card .input-group-append + .form-control,
.auth-card .form-control:not(:last-child) { border-radius: 0; }
.auth-card .input-group:not(:has(.input-group-append)) .form-control { border-radius: 0 12px 12px 0; }

.btn-auth { height: 50px; border-radius: 12px; font-weight: 600; font-size: 1rem; background: var(--c-primary); border-color: var(--c-primary); }
.btn-auth:hover, .btn-auth:focus { background: var(--c-primary-dark); border-color: var(--c-primary-dark); }
.btn-auth[disabled] { opacity: .75; }

.auth-alt { text-align: center; margin: 18px 0 0; color: var(--c-muted); font-size: .9rem; }
.auth-foot { text-align: center; color: rgba(255, 255, 255, .8); font-size: .75rem; margin: 16px 0 0; }
.alert { border: 0; border-radius: 12px; font-size: .9rem; }
.custom-control-label { padding-top: 1px; font-weight: 400 !important; }

/* Kolom jebakan bot disembunyikan dari tampilan dan pembaca layar */
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

@media (min-width: 576px) { .auth-card { padding: 32px 30px; } }
