/* =====================================================
   Tanglaw - Auth Modern (Phase D)
   Apple-minimal, big-company auth experience.

   This stylesheet is intentionally scoped to auth pages.
   ===================================================== */

.auth-shell{
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
}

.auth-hero{
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px 56px;
  border-right: 1px solid rgba(255,255,255,0.08);
  background:
    radial-gradient(900px 420px at 10% 10%, rgba(59,130,246,0.16), transparent 55%),
    radial-gradient(760px 420px at 60% 20%, rgba(59,130,246,0.09), transparent 60%),
    rgba(255,255,255,0.01);
}

.auth-brand{
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

/* fallback single-letter mark (older builds) */
.auth-logo{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(59,130,246,0.18);
  border: 1px solid rgba(59,130,246,0.22);
  box-shadow: 0 14px 44px rgba(0,0,0,0.30);
  font-weight: 800;
  letter-spacing: 0.4px;
}

/* client logo (preferred) */
.auth-logo-img{
  /* Brand mark should lead (client logo is a flame icon) */
  height: 72px;
  width: auto;
  max-width: 320px;
  display: block;
  filter: drop-shadow(0 14px 44px rgba(0,0,0,0.30));
}

.auth-wordmark{
  margin: 0;
  font-size: 52px;
  line-height: 1;
  font-weight: 860;
  letter-spacing: 0.2px;
}

.auth-hero-title{
  margin: 10px 0 8px;
  font-size: 30px;
  line-height: 1.08;
  font-weight: 820;
}

.auth-hero-sub{
  color: var(--text-muted);
  max-width: 520px;
  font-size: 15px;
  line-height: 1.55;
}

.auth-points{
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.auth-point{
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--text-muted);
}

.auth-point .dot{
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-radius: 999px;
  background: rgba(59,130,246,0.5);
  box-shadow: 0 0 0 4px rgba(59,130,246,0.12);
}

.auth-panel{
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 18px;
}

.auth-card{
  width: 100%;
  max-width: 440px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 18px;
  background: rgba(255,255,255,0.02);
  box-shadow: 0 18px 60px rgba(0,0,0,0.45);
  padding: 22px 22px;
}

.auth-card h2{
  margin: 2px 0 6px;
  font-size: 22px;
}

.auth-card p{
  color: var(--text-muted);
  margin: 0 0 14px;
}

.auth-actions{
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.auth-links{
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
}

.auth-links a{
  color: var(--text-main);
}

.auth-links a:hover{
  text-decoration: underline;
}

.auth-divider{
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 14px 0;
}

/* password toggle affordance (optional) */
.tlw-input-row{
  position: relative;
}

.tlw-input-row .tlw-input-suffix{
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  color: var(--text-muted);
  border-radius: 10px;
  padding: 6px 8px;
  font-size: 12px;
  cursor: pointer;
}

.tlw-input-row .tlw-input-suffix:hover{
  color: var(--text-main);
  border-color: rgba(255,255,255,0.16);
}

@media (max-width: 980px){
  .auth-shell{ grid-template-columns: 1fr; }
  .auth-hero{ padding: 34px 20px; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .auth-hero-title{ font-size: 26px; }
  .auth-logo-img{ height: 56px; max-width: 300px; }
  .auth-wordmark{ font-size: 40px; }
}


/* Student-first signup emphasis (Apple-minimal) */
.auth-signup{
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.auth-signup-title{
  color: var(--text-main);
  font-size: 14px;
}

.auth-signup-sub{
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.45;
}

.btn-student-cta{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: var(--text-main);
  font-weight: 600;
  letter-spacing: 0.2px;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.btn-student-cta:hover{
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.22);
  transform: translateY(-1px);
}

.btn-student-cta:active{
  transform: translateY(0px);
}

.auth-signup-staff{
  margin-top: 2px;
}

.staff-signup{
  color: var(--text-muted);
  font-size: 12.5px;
}

.staff-signup summary{
  cursor: pointer;
  list-style: none;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  padding: 4px 0;
}

.staff-signup summary::-webkit-details-marker{ display:none; }

.staff-signup summary::after{
  content: "›";
  transform: rotate(90deg);
  display: inline-block;
  opacity: 0.8;
  transition: transform 140ms ease;
}

.staff-signup[open] summary::after{
  transform: rotate(-90deg);
}

.staff-links{
  margin-top: 6px;
  display: grid;
  gap: 6px;
}

.staff-links a{
  color: var(--text-main);
  text-decoration: none;
}

.staff-links a:hover{
  text-decoration: underline;
}

/* Register page staff links */
.auth-staff-links .sep{
  opacity: 0.6;
  padding: 0 6px;
}
