/* WRAPPER */
.auth-wrapper{
  max-width:400px;
  margin:50px auto;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial;
 min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#f5f7fb;
  padding:20px;
}

/* CARD (IMPORTANT for modern UI) */
.auth-card{
  width:100%;
  max-width:420px;
  background:#fff;
  border-radius:18px;
  padding:32px 26px;
  box-shadow:0 20px 60px rgba(0,0,0,0.08);
}

.auth-header h2{
  font-size:22px;
  font-weight:700;
  margin-bottom:6px;
}

.auth-trust{
  display:flex;
  gap:10px;
  font-size:12px;
  color:#0E4A56;
  margin-bottom:18px;
}

.auth-trust span{
  background:#f0f7f8;
  padding:6px 10px;
  border-radius:20px;
}

.auth-header p{
  font-size:14px;
  color:#666;
  margin-bottom:16px;
}

/* TABS (Login / Signup) */
.auth-tabs{
  display:flex;
  gap:10px;
  margin-bottom:18px;
}

.auth-tabs button{
  flex:1;
  padding:12px;
  border:none;
  border-radius:8px;
  background:#f1f1f1;
  font-weight:500;
  cursor:pointer;
  transition:0.2s;
  flex:1;
  padding:12px;
  border:none;
  border-radius:8px;
  background:#eee;
  font-weight:600;
  cursor:pointer;
}

.auth-tabs button.active{
  background:#0E4A56;
  color:#fff;
}


.auth-footer{
  text-align:center;
  font-size:12px;
  color:#888;
  margin-top:15px;
}


/* CONTENT SWITCH */
.tab-content{
  display:none;
}

.tab-content.active{
  display:block;
}

.auth-wrapper input{
  width:100%;
  padding:14px;
  border:1px solid #e5e7eb;
  border-radius:10px;
  margin-bottom:14px;
  font-size:14px;
  background:#fff;
  transition:0.2s;
}

.auth-wrapper input:focus{
  border-color:#0E4A56;
  box-shadow:0 0 0 3px rgba(14,74,86,0.08);
  outline:none;
}

/* PHONE FIELD */
.phone-field{
  display:flex;
  align-items:center;
  border:1px solid #ddd;
  border-radius:10px;
  overflow:hidden;
  margin-bottom:14px;
  display:flex;
  border:1px solid #ddd;
  border-radius:8px;
  overflow:hidden;
  margin-bottom:12px;

}

.phone-field span{
  padding:12px;
  background:#f3f3f3;
}

.phone-field input{
  border:none;
  margin:0;
}

.auth-wrapper button{
  width:100%;
  padding:14px;
  border:none;
  border-radius:8px;
  background:#0E4A56;
  color:#fff;
  font-weight:600;
  cursor:pointer;
  transition:0.2s;
}

.auth-wrapper button:hover{
  background:#08363f;
}

/* LOGIN MODE SWITCH (Email / Phone) */
.login-switch{
  display:flex;
  gap:10px;
  margin-bottom:16px;
}

.login-switch button{
  flex:1;
  padding:12px;
  border:none;
  border-radius:8px;
  background:#f1f1f1;
  cursor:pointer;
  transition:0.2s;
}



.login-switch button.active{
  background:#2874F0;
  color:#fff;
}

/* OTP BOXES */
.otp-boxes{
  display:flex;
  gap:10px;
  justify-content:center;
  margin:15px 0;
}


/* TOP SWITCH (Login / Signup) */
.auth-top-switch{
  display:flex;
  gap:10px;
  margin-bottom:18px;
}

.auth-top-switch button{
  flex:1;
  padding:10px;
  border:none;
  border-radius:999px;
  background:#f1f5f9;
  font-weight:600;
  cursor:pointer;
  transition:0.2s;
}

.auth-top-switch button.active{
  background:#0E4A56;
  color:#fff;
}

/* EMAIL / PHONE SWITCH (clean minimal) */
.input-switch{
  display:flex;
  gap:16px;
  margin-bottom:14px;
  font-size:14px;
  font-weight:500;
}

.input-switch span{
  cursor:pointer;
  color:#6b7280;
  transition:0.2s;
}

.input-switch span.active{
  color:#0E4A56;
  border-bottom:2px solid #0E4A56;
  padding-bottom:2px;
}


.otp-boxes input{
  width:44px;
  height:44px;
  border-radius:8px;
}

/* RESEND TIMER */
.resend{
  text-align:center;
  font-size:13px;
  color:#666;
  margin-top:8px;
}

/* LINKS */
.auth-wrapper a{
  color:#2874F0;
  text-decoration:none;
  font-weight:500;
}

/* ERROR MESSAGE */
.auth-error{
  color:red;
  font-size:14px;
  margin-bottom:10px;
  text-align:center;
}

/* SMALL SCREENS */
@media (max-width:480px){
  .auth-wrapper{
    padding:0 10px;
  }

  .auth-card{
    padding:20px;
  }
}