@import url('./tokens.css');

.auth-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 12%, rgba(247, 148, 29, .12), transparent 28%),
    radial-gradient(circle at 90% 20%, rgba(76, 174, 79, .13), transparent 31%),
    #f8faf8;
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
}
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(420px, .85fr) minmax(520px, 1.15fr);
}
.auth-brand {
  position: relative;
  min-height: 100%;
  padding: 48px;
  color: white;
  background: linear-gradient(145deg, var(--green-950), var(--green-700));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.auth-brand::before, .auth-brand::after {
  content: "";
  position: absolute;
  width: 540px;
  height: 230px;
  border-radius: 50%;
  transform: rotate(-10deg);
}
.auth-brand::before { left: -150px; bottom: -65px; background: var(--orange-500); }
.auth-brand::after { right: -160px; bottom: -100px; background: rgba(255,255,255,.12); }
.brand-logo-card {
  position: relative;
  z-index: 1;
  width: 220px;
  height: 220px;
  padding: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.96);
  box-shadow: 0 20px 45px rgba(0,0,0,.16);
  overflow: hidden;
}
.brand-logo-card img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.brand-copy { position: relative; z-index: 1; max-width: 520px; }
.brand-copy h1 { font-size: clamp(2rem, 4vw, 3.8rem); line-height: 1.08; margin: 0 0 18px; }
.brand-copy p { margin: 0; font-size: 1.08rem; color: rgba(255,255,255,.82); }
.brand-footer { position: relative; z-index: 1; font-size: .9rem; color: rgba(255,255,255,.8); }

.auth-main {
  display: grid;
  place-items: center;
  padding: 42px 24px;
  position: relative;
}
.auth-card {
  width: min(520px, 100%);
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 28px;
  box-shadow: var(--shadow-md);
  padding: clamp(24px, 4vw, 42px);
  backdrop-filter: blur(18px);
}
.auth-logo-mobile { display: none; width: 120px; height: 120px; object-fit: cover; border-radius: 50%; border: 1px solid var(--line); box-shadow: var(--shadow-sm); margin: 0 auto 18px; }
.auth-title { margin: 0 0 6px; text-align: center; font-size: clamp(1.8rem, 3vw, 2.35rem); }
.auth-subtitle { text-align: center; margin: 0 0 28px; color: var(--ink-600); }
.auth-form { display: grid; gap: 17px; }
.auth-options { display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; }
.checkbox { display: inline-flex; align-items: center; gap: 8px; }
.checkbox input { width: 18px; height: 18px; accent-color: var(--green-700); }
.link { color: var(--green-800); font-weight: 700; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--ink-400); font-size: .88rem; }
.divider::before, .divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.google-btn { background: #fff; border: 1px solid var(--line); color: var(--ink-800); }
.google-mark { width: 20px; height: 20px; }
.role-note { margin-top: 18px; font-size: .88rem; }
.auth-back { margin-top: 20px; text-align: center; }

@media (max-width: 980px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .auth-main { min-height: 100vh; }
  .auth-logo-mobile { display: block; }
}
@media (max-width: 560px) {
  .auth-main { padding: 18px 14px 90px; align-items: start; }
  .auth-card { border-radius: 22px; padding: 24px 18px; margin-top: 20px; }
  .auth-options { align-items: flex-start; }
  .auth-page::after {
    content: "";
    position: fixed;
    left: -12%; right: -12%; bottom: -78px;
    height: 150px;
    border-radius: 50% 50% 0 0;
    background: linear-gradient(160deg, var(--orange-500) 0 34%, var(--green-800) 35% 100%);
    z-index: 0;
  }
  .auth-main { z-index: 1; }
}


/* Aktivasi akun email/password */
.email-register-panel { display: grid; gap: 14px; }
.register-password-grid { gap: 12px; }
@media (max-width: 560px) {
  .register-password-grid { grid-template-columns: 1fr; }
}
