/* =========================================================
   Dummy Login Page (ala Patreon) — style.css
   Responsif untuk desktop & mobile
   ========================================================= */

:root {
  --global-content-regular-default: #0d0d0d;  /* warna logo Patreon */
  --text-primary:   #1f1f26;
  --text-secondary: #6e6e73;
  --border-color:   #d8d8dc;
  --bg:             #ffffff;
  --hover-bg:       #f7f7f8;
  --active-bg:      #f0f0f1;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Pastikan atribut hidden selalu menang, walau elemen punya display flex */
[hidden] {
  display: none !important;
}

html,
body {
  background: var(--bg);
}

body {
  font-family: "ABC Oracle Plus Variable", -apple-system, blinkmacsystemfont,
    "Segoe UI", roboto, arial, sans-serif;
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- Layout utama ---------- */

.login-wrap {
  min-height: 100vh;               /* fallback browser lama */
  min-height: 100svh;              /* akurat di browser mobile modern */
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.login-box {
  width: 100%;
  max-width: 344px;
  padding: 0 16px;
  padding-top: clamp(64px, 12vh, 96px);
  text-align: center;
}

/* ---------- Logo ---------- */

.logo-row {
  display: flex;
  justify-content: center;
}

.brand-logo {
  /* ukuran 48x48px ditentukan lewat inline style pada elemen SVG (sesuai aset resmi) */
  display: block;
}

/* ---------- Judul ---------- */

.login-title {
  margin-top: 16px;
  font-size: 29px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

/* ---------- Tombol Microsoft ---------- */

.ms-btn {
  margin-top: 20px;
  width: 100%;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 4px;

  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  user-select: none;

  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.ms-btn:hover {
  background: var(--hover-bg);
  border-color: #c6c6cb;
}

.ms-btn:active {
  background: var(--active-bg);
}

.ms-btn:focus-visible {
  outline: 2px solid #0067b8;
  outline-offset: 2px;
}

.ms-logo {
  width: 18px;
  height: 18px;
  flex: none;
}

/* ---------- Teks legal ---------- */

.legal-text {
  margin-top: 64px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-secondary);
}

.legal-text a {
  color: inherit;
  text-decoration: underline;
}

.legal-text .brand-name {
  font-weight: 600;
}

/* ---------- Tampilan sukses (dummy) ---------- */

.login-success {
  margin-top: 8px;
}

.success-avatar {
  width: 56px;
  height: 56px;
  margin: 0 auto;
  border-radius: 50%;
  background: #0d0d0d;
  color: #ffffff;
  font-size: 24px;
  font-weight: 700;
  line-height: 56px;
  text-transform: uppercase;
}

.success-title {
  margin-top: 14px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.success-email {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  word-break: break-all;
}

.success-note {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-secondary);
}

.logout-btn {
  margin-top: 18px;
  border-color: #1f1f26;
  font-weight: 600;
}

.logout-btn:hover {
  background: var(--hover-bg);
  border-color: #1f1f26;
}

/* =========================================================
   Responsif — Mobile
   ========================================================= */

@media (max-width: 480px) {
  .login-box {
    max-width: 100%;
    padding: 0 24px;
    padding-top: clamp(56px, 14vh, 96px);
  }

  .login-title {
    font-size: 25px;
  }

  /* Touch target lebih besar di mobile */
  .ms-btn {
    height: 44px;
    font-size: 15px;
  }

  .legal-text {
    margin-top: 48px;
  }
}

/* Layar sangat kecil (mis. iPhone SE landscape) */
@media (max-width: 360px) {
  .login-title {
    font-size: 23px;
  }

  .ms-btn {
    font-size: 14px;
  }
}
