/* ============ AUTH PAGES (Apply/Login) ============ */

:root{
  --auth-bg: #0b1220;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e5e7eb;
  --brand: #fa394a;
  --brand2:#ff6a2a;
  --shadow: 0 22px 60px rgba(2,6,23,.18);
  --radius: 16px;
}

.auth-wrap{
  min-height: 100vh;
  background: linear-gradient(180deg, rgba(2,6,23,.65), rgba(2,6,23,.25)),
              url("/assets/images/hero-image.webp") center/cover no-repeat;
  padding: 120px 20px 70px;
}

.auth-shell{
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 22px;
  align-items: start;
}

.auth-left{
  color:#fff;
  padding: 26px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(10px);
}

.auth-left h1{
  margin: 0 0 10px;
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.auth-left p{
  margin: 0 0 18px;
  color: rgba(255,255,255,.88);
  line-height: 1.65;
  font-size: 15px;
}

.auth-badges{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top: 14px;
}

.auth-badge{
  display:inline-flex;
  gap:8px;
  align-items:center;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.14);
  font-size: 13px;
  color: rgba(255,255,255,.92);
}

.auth-card{
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(15,23,42,.08);
  overflow: hidden;
}

.auth-card__head{
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}

.auth-card__head h2{
  margin: 0;
  font-size: 18px;
  color: var(--text);
}

.auth-card__head .small{
  font-size: 13px;
  color: var(--muted);
}

.auth-card__body{
  padding: 18px 20px 20px;
}

.auth-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.auth-field{
  display:flex;
  flex-direction:column;
  gap: 6px;
}

.auth-field label{
  font-size: 13px;
  color: #334155;
  font-weight: 600;
}

.auth-field input,
.auth-field select{
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 0 12px;
  outline: none;
  font-size: 14px;
  background: #fff;
  color: var(--text);
}

.auth-field input:focus,
.auth-field select:focus{
  border-color: rgba(250,57,74,.55);
  box-shadow: 0 0 0 4px rgba(250,57,74,.12);
}

.auth-span-2{ grid-column: span 2; }

.auth-actions{
  display:flex;
  gap: 12px;
  align-items:center;
  justify-content:flex-end;
  margin-top: 14px;
  flex-wrap: wrap;
}

.btn{
  height: 44px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0 18px;
  font-weight: 800;
  letter-spacing: .02em;
  cursor: pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  text-decoration: none;
}

.btn-primary{
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: #fff;
  box-shadow: 0 16px 38px rgba(250,57,74,.30);
}

.btn-ghost{
  background: #fff;
  color: var(--text);
  border-color: rgba(15,23,42,.14);
}

.btn-primary:disabled{ opacity:.55; cursor:not-allowed; }

.auth-note{
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

.auth-divider{
  display:flex;
  align-items:center;
  gap: 12px;
  margin: 14px 0;
  color: var(--muted);
  font-size: 13px;
}

.auth-divider::before,
.auth-divider::after{
  content:"";
  height:1px;
  background: var(--line);
  flex: 1;
}

.alert{
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 12px;
  border: 1px solid;
}

.alert-success{
  background: rgba(34,197,94,.10);
  border-color: rgba(34,197,94,.35);
  color: #14532d;
}

.alert-error{
  background: rgba(239,68,68,.10);
  border-color: rgba(239,68,68,.35);
  color: #7f1d1d;
}

/* OTP modal */
.otp-modal{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 12000;
}
.otp-modal.show{ display:block; }
.otp-backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.58);
}
.otp-dialog{
  position: relative;
  width: min(520px, calc(100% - 24px));
  margin: 10vh auto;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(15,23,42,.12);
  box-shadow: 0 24px 70px rgba(0,0,0,.35);
  padding: 18px 18px 16px;
}
.otp-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.otp-top h3{
  margin:0;
  font-size: 16px;
  color: var(--text);
}
.otp-close{
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: none;
  background: rgba(2,6,23,.06);
  cursor: pointer;
  font-size: 18px;
}
.otp-row{
  display:grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items:center;
}
.otp-help{
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 980px){
  .auth-shell{ grid-template-columns: 1fr; }
  .auth-left h1{ font-size: 36px; }
}

@media (max-width: 560px){
  .auth-grid{ grid-template-columns: 1fr; }
  .auth-span-2{ grid-column: auto; }
}