:root{
  --muted: #8d98a6;
  --muted-2: #5f6a77;
  --accent: #c0c0c0;
  --hover-accent: #2c2c2c;
  --bg: #ffffff;
  --font: "Helvetica Neue", Arial, sans-serif;
}

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

body{
  font-family: var(--font);
  background-color: #fff;
  color: #111827;
}

.container{
  display:flex;
  flex-direction:column;
  align-items:center;
  max-width:420px;
  width:100%;
  padding:2rem 1rem;
  margin:0 auto;
  text-align:left;
}

.logo{
  width:48px;
  margin-bottom:1.5rem;
  display:block;
}

h1{
  font-size:1.6rem;
  font-weight:700;
  margin-bottom:0.25rem;
  color:#111827;
}

.subtext{
  font-size:0.95rem;
  color:#6b7280;
  margin-bottom:1.4rem;
  font-style: italic;
}

form{
  width:100%;
  display:flex;
  flex-direction:column;
  gap:1.15rem;
}

label{
  font-size:0.9rem;
  font-weight:600;
  margin-bottom:0.35rem;
  display:inline-block;
  color:#111827;
}

input, select{
  width:100%;
  padding:0.72rem;
  font-size:0.95rem;
  border:1px solid #d1d5db;
  border-radius:8px;
  transition:border-color .12s ease, box-shadow .12s ease;
  background:#fff;
  color:#111827;
}

input:focus, select:focus{
  outline:none;
  border-color:#111827;
  box-shadow:0 0 0 4px rgba(17,24,39,0.04);
}

.input-error{
  border-color:#ef4444 !important;
  box-shadow:0 0 0 4px rgba(239,68,68,0.06);
}

.error{
  display:none;
  color:#ef4444;
  font-size:0.82rem;
  margin-top:0.3rem;
}

.password-wrapper{
  position:relative;
}

/* ==========================
   LUCIDE ICON SUPPORT FIX ✅
========================== */
.toggle-eye{
  position:absolute;
  top:50%;
  right:12px;
  transform:translateY(-50%);
  cursor:pointer;
  color:#6b7280;
  user-select:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:36px;
  height:36px;
  border-radius:8px;
  transition: background .12s ease, color .12s ease;
}

.toggle-eye svg{
  width:20px;
  height:20px;
  stroke-width:2;
}

.toggle-eye:hover{
  color:#111827;
  background: rgba(17,24,39,0.02);
}

.toggle-eye:focus{
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

.toggle-eye:focus-visible{
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

/* PHONE FIELD */
.contact-field{
  display:flex;
  gap:0;
  align-items:center;
  border:1px solid #e5e7eb;
  border-radius:8px;
  overflow:hidden;
  background:#fff;
  height:48px;
}

.contact-field select{
  flex:0 0 110px;
  padding:0.62rem 0.6rem;
  border:0;
  background:transparent;
  appearance:none;
  display:flex;
  align-items:center;
  font-size:0.95rem;
  cursor:pointer;

  background-image: linear-gradient(45deg, transparent 50%, transparent 50%),
                    linear-gradient(135deg, transparent 50%, transparent 50%),
                    linear-gradient(to right, rgba(0,0,0,0.06), rgba(0,0,0,0.06));
  background-repeat: no-repeat;
  background-position: calc(100% - 18px) 40%, calc(100% - 13px) 40%, calc(100% - 30px) 50%;
  background-size: 6px 6px, 6px 6px, 1px 24px;
}

.contact-field input{
  flex:1;
  padding:0.62rem 0.9rem;
  border:0;
  font-size:0.95rem;
  background:transparent;
  color:#111827;
}

.contact-field input::placeholder{
  color:#9ca3af;
}

.contact-field:focus-within{
  box-shadow:0 0 0 4px rgba(17,24,39,0.04);
  border-color:#111827;
}

@media (max-width:420px){
  .contact-field select{
    flex:0 0 100px;
  }
}

/* Agreement */
.agreement{
  font-size:0.9rem;
  color:#6b7280;
  margin-top:0.2rem;
  text-align:center;
}

.agreement a{
  color:#111827;
  text-decoration:none;
  font-weight:500;
  transition:color 0.3s ease;
}

.agreement a:hover{
  text-decoration:underline;
}

.btn-submit{
  margin-top:0.6rem;
  width:100%;
  padding:0.9rem;
  font-size:1rem;
  background:linear-gradient(180deg,#111827 0%, #0b1220 100%);
  color:#fff;
  border:none;
  border-radius:10px;
  cursor:pointer;
  font-weight:600;
  box-shadow:0 6px 20px rgba(2,6,23,0.35), inset 0 -3px 8px rgba(255,255,255,0.03);
}

.btn-submit:hover{
  opacity:0.95;
}

.rules-box{
  background:#fbfeff;
  border:1px solid #eef6f5;
  border-radius:10px;
  padding:14px;
  margin-top:0.8rem;
  box-shadow:0 1px 0 rgba(9,30,66,0.02);
}

.rules{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap:8px;
  color:#64748b;
  font-size:0.95rem;
}

.rules li{
  display:flex;
  align-items:center;
  gap:10px;
}

.rule-icon{
  width:28px;
  height:28px;
  display:inline-grid;
  place-items:center;
  border-radius:8px;
  background:#fff;
  border:1px solid #e6eef3;
  color:#6b7280;
  font-weight:700;
  font-size:14px;
  box-shadow:0 1px 0 rgba(9,30,66,0.02), inset 0 -1px 0 rgba(255,255,255,0.6);
}

.rules li.valid .rule-icon{
  background:#ebf8ff;
  border-color:#bfebff;
  color:#0369a1;
}

.rule-text{
  color:#111827;
  font-weight:400;
}

.password-rules-alert{
  color:#6b7280;
  font-size:0.9rem;
  margin-top:10px;
  display:none;
}

.register-text{
  margin-top:1.1rem;
  font-size:0.95rem;
  color:#6b7280;
}

.register-text a{
  color:#111827;
  font-weight:600;
  text-decoration:none;
}

.register-text a:hover{
  text-decoration:underline;
}



/* ======================
   AGE CONFIRM CHECKBOX
====================== */

.age-confirm{
  margin-top: 6px;
}

.age-label{
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: #6b7280;
  cursor: pointer;
  user-select: none;
}

.age-label input{
  width: 18px;
  height: 18px;
  accent-color: #111827;
  cursor: pointer;
}