/* auth.css - modal đăng nhập (mock) + nút đăng nhập trên header. */

.auth-scrim {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(0, 0, 0, .62); backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.auth-scrim.is-open { opacity: 1; pointer-events: auto; }

.auth-modal {
  position: fixed; left: 50%; top: 50%; z-index: 81;
  width: min(400px, calc(100vw - 32px));
  transform: translate(-50%, -48%) scale(.97);
  background: var(--bg-raised);
  border: 1px solid var(--line-gold);
  border-radius: var(--radius-xl, 16px);
  padding: 30px 28px 24px;
  text-align: center;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .85);
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease, transform .25s cubic-bezier(.2, .8, .2, 1);
}
.auth-modal.is-open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
.auth-close { position: absolute; top: 12px; right: 12px; color: var(--ink-ash); border-radius: 50%; }
.auth-close:hover { color: var(--ink-bone); background: rgba(255, 255, 255, .05); }
.auth-emblem { display: inline-flex; margin-bottom: 6px; }
.auth-title { font-size: 1.5rem; color: var(--ink-bone); margin: 4px 0 0; }
.auth-sub { color: var(--ink-ash); font-size: .9rem; line-height: 1.55; margin: 10px auto 20px; max-width: 30ch; }
.auth-google {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 48px; padding: 12px 16px;
  background: #fff; color: #1f1f1f;
  border-radius: var(--radius-md); font-family: var(--font-ui); font-weight: 600; font-size: .95rem;
  transition: transform .15s ease, box-shadow .2s ease;
}
.auth-google:hover { box-shadow: 0 6px 20px -8px rgba(0, 0, 0, .6); }
.auth-google:active { transform: scale(.98); }
/* Vùng chứa nút Google Identity Services (GIS tự render nút trong đây) */
.auth-gbtn { display: flex; justify-content: center; align-items: center; min-height: 44px; margin: 2px 0; }
.auth-note { color: var(--ink-faint); font-size: 0.82rem; margin: 14px 0 0; }

/* Header auth slot */
.auth-slot { display: flex; align-items: center; gap: 8px; margin-left: 6px; }
.btn-auth {
  font-family: var(--font-ui); font-size: 14px; font-weight: 600;
  color: var(--gold-soft); border: 1px solid var(--gold);
  padding: 8px 16px; border-radius: var(--radius-md); min-height: 38px;
  transition: background .2s ease;
}
.btn-auth:hover { background: rgba(194, 161, 77, .1); }
.auth-user { display: inline-flex; align-items: center; gap: 8px; }
.auth-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(160deg, #8E2A2A, #5a1a1a);
  color: var(--ink-bone); display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 14px; font-weight: 600;
}
.auth-name { color: var(--ink-ash); font-size: 13px; }
.btn-logout { color: var(--ink-faint); font-size: 13px; padding: 6px 8px; border-radius: var(--radius-sm); }
.btn-logout:hover { color: var(--ink-bone); }

@media (max-width: 720px) { .auth-name { display: none; } }
