:root{
  --bg:#f7f6f2;
  --panel:#ffffff;
  --text:#1f2e43;
  --muted:#7d8794;
  --line:#ece7db;
  --gold:#d4a326;
  --gold-dark:#b98915;
  --gold-soft:#fbf4df;
  --navy:#24364f;
  --input:#f8f8f6;
  --shadow:0 10px 30px rgba(31,46,67,.08);
  --radius-xl:28px;
  --radius-lg:18px;
  --radius-md:14px;
}

*{box-sizing:border-box}
html,body{
  margin:0;
  padding:0;
  font-family:Inter, Arial, sans-serif;
  background:var(--bg);
  color:var(--text);
}
body{
  min-height:100vh;
}
button,input{
  font:inherit;
}

.auth-screen{
  min-height:100vh;
  padding:22px 14px 28px;
  display:flex;
  align-items:flex-start;
  justify-content:center;
}

.auth-app{
  width:100%;
  max-width:430px;
  margin:0 auto;
}

.hero{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  margin-bottom:12px;
}

.hero dotlottie-wc{
  width:220px !important;
  height:220px !important;
  max-width:100%;
}

.login-card{
  width:100%;
  max-width:100%;
  overflow:hidden;
}

#loginMode,
#signupMode{
  width:100%;
}

.otp-section{
  width:100%;
  margin-top:22px;
  padding-top:14px;
  border-top:1px solid var(--line);
}

.otp-boxes{
  width:100%;
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:10px;
}

.otp-digit{
  width:100%;
  min-width:0;
  height:56px;
  border:1px solid var(--line);
  border-radius:16px;
  background:var(--input);
  text-align:center;
  font-size:24px;
  font-weight:800;
  outline:none;
  appearance:none;
  -webkit-appearance:none;
}

.otp-digit:focus{
  border-color:var(--gold);
  background:#fff;
}

.phone-input-wrapper{
  width:100%;
}

.phone-input{
  min-width:0;
}

@media (max-width:520px){
  .auth-screen{
    padding:14px 12px 24px;
  }

  .hero dotlottie-wc{
    width:180px !important;
    height:180px !important;
  }

  .login-card{
    padding:22px 16px 20px;
    border-radius:24px;
  }

  .otp-boxes{
    gap:8px;
  }

  .otp-digit{
    height:52px;
    font-size:22px;
  }
}

.brand-logo{
  width:62px;
  height:62px;
  object-fit:contain;
  margin-bottom:8px;
}

.login-card{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:30px;
  padding:26px 20px 22px;
  box-shadow:var(--shadow);
}

.brand-mini{
  margin:0;
  text-align:center;
  font-size:11px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--gold-dark);
}

.brand-title{
  margin:8px 0 8px;
  text-align:center;
  font-size:30px;
  line-height:1.2;
  color:var(--navy);
}

.brand-subtitle{
  margin:0;
  text-align:center;
  color:var(--muted);
  font-size:14px;
  line-height:1.5;
}

.course-chip{
  margin:18px auto 20px;
  width:max-content;
  max-width:100%;
  background:var(--gold-soft);
  color:var(--gold-dark);
  border:1px solid #efdfb0;
  border-radius:999px;
  padding:10px 14px;
  font-size:12px;
  font-weight:800;
  text-align:center;
}

.phone-block{
  margin-top:4px;
}

.field-label{
  display:block;
  margin-bottom:8px;
  font-size:13px;
  font-weight:700;
  color:var(--navy);
}

.phone-input-wrapper{
  display:flex;
  align-items:center;
  gap:10px;
  border:1px solid var(--line);
  background:var(--input);
  border-radius:18px;
  padding:0 14px;
  min-height:56px;
}

.country-code{
  font-weight:800;
  color:var(--gold-dark);
}

.phone-input{
  width:100%;
  border:none;
  outline:none;
  background:transparent;
  color:var(--text);
  font-size:15px;
}

.primary-btn{
  width:100%;
  height:54px;
  border:none;
  border-radius:16px;
  background:linear-gradient(180deg,var(--gold),var(--gold-dark));
  color:#fff;
  font-weight:800;
  cursor:pointer;
  margin-top:14px;
  box-shadow:0 10px 22px rgba(185,137,21,.24);
}

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

.helper-text{
  margin:10px 0 0;
  text-align:center;
  font-size:12px;
  color:var(--muted);
}

.otp-section{
  margin-top:22px;
  padding-top:8px;
  border-top:1px solid var(--line);
}

.otp-label{
  margin:0 0 12px;
  text-align:center;
  font-size:12px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--muted);
}

.otp-boxes{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:10px;
}

.otp-digit{
  height:56px;
  border:1px solid var(--line);
  border-radius:16px;
  background:var(--input);
  text-align:center;
  font-size:24px;
  font-weight:800;
  outline:none;
}

.otp-timer{
  margin:12px 0 0;
  text-align:center;
  font-size:13px;
  color:var(--muted);
  line-height:1.4;
}

.verify-btn{
  margin-top:14px;
}

.terms-text{
  margin:18px 0 0;
  text-align:center;
  color:var(--muted);
  font-size:12px;
  line-height:1.6;
}

.terms-text a{
  color:var(--gold-dark);
  text-decoration:none;
}

@media (max-width:420px){
  .brand-title{
    font-size:26px;
  }
}