/* ---- Palette ---- */
:root{
  --bg: #1f1a2b;
  --panel: rgba(31, 26, 43, 0.9);
  --panel-border: #6c4dd866;
  --text: #f4f2f3;
  --muted: #efe2fdda;
  --purple: #9e4770;
  --purple-dark: #9e4770;
  --accent: #005c69;
}

/* ---- Base / Reset ---- */
* {
   box-sizing: border-box;
}

html, body {
  height: 100%;
}

body{
  margin: 0;
  color: var(--text);
  background: url("imgs/loginbkg.jpg") center/cover;
  font-family:"Trebuchet MS","Lucida Sans Unicode","Lucida Grande","Verdana",sans-serif;
}

/* ---- Centering shell ---- */
.auth-shell{
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

/* ---- Card (glassmorphism to match login) ---- */
.auth-card{
  width: 100%;
  max-width: 520px;
  padding: 32px 28px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  box-shadow: 0 10px 40px rgba(31,26,43,0.6);
}

/* ---- Titles ---- */
.brand-title{
  margin: 0 0 6px 0;
  text-align: center;
  font-size: 34px;
  letter-spacing: 1px;
}
.auth-subtitle{
  margin: 0 0 16px 0;
  text-align: center;
  font-size: 18px;
  color: var(--muted);
  font-weight: 500;
}

/* ---- Inputs / Selects (pill style) ---- */
.input-wrap{
  position: relative;
  display: block;
  margin: 12px 0;
}
.input-wrap input,
.input-wrap select{
  width: 100%;
  height: 50px;
  padding: 12px 16px;
  font-size: 16px;
  color: var(--text);
  background: rgba(244,242,243,0.06);
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  outline: none;
}
.input-wrap input::placeholder{ color: var(--muted); }

/* Custom select arrow */
.input-wrap select{
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 22px) calc(50% - 6px),
                       calc(100% - 16px) calc(50% - 6px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  color: var(--text);
}

.input-wrap select option{
  color: var(--text);
  background: var(--panel);
  opacity: 1;
}

/* Focus ring */
.input-wrap input:focus,
.input-wrap select:focus{
  box-shadow: 0 0 0 2px rgba(0,92,105,0.4);
  border-color: rgba(0,92,105,0.55);
}

/* ---- Grid rows for First/Last & DOB ---- */
.form-row{
  display: grid;
  gap: 12px;
  margin: 8px 0;
}
.form-row.two{ grid-template-columns: repeat(2, 1fr); }
.form-row.three{ grid-template-columns: repeat(3, 1fr); }

/* ---- Primary button (matches login) ---- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 46px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  transition: transform .06s ease, box-shadow .2s ease, background .2s ease;
}
.btn.primary{
  color: var(--text);
  background: linear-gradient(135deg, #005c69, #9e4770);
  box-shadow: 0 6px 24px rgba(31,26,43,0.5);
}
.btn.primary:hover{ transform: translateY(-1px); }
.btn.primary:active{ transform: translateY(0); }

/* ---- Small helpers ---- */
.muted{ color: var(--muted); }
.center{ text-align: center; }
.small{ font-size: 14px; }
.form-error{
  min-height: 20px;
  margin: 0 0 12px 0;
  color: #ff9fa5;
  font-size: 14px;
  text-align: center;
}
.link{
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px dashed transparent;
}
.link:hover{ border-bottom-color: currentColor; }

/* ---- Responsive ---- */
@media (max-width: 560px){
  .auth-card{ padding: 24px 20px; }
  .brand-title{ font-size: 30px; }
}
@media (max-width: 520px){
  .form-row.two, .form-row.three{ grid-template-columns: 1fr; }
}
