/* st-auth.css — Ser Travel stage account pages */
/* Brand: --dark #002d24, --primary #00c9a2, --gold #f0c040, --light #f4f9f8, --white #ffffff */
/* Fonts: Montserrat, Inter, Playfair Display */

:root{
  --dark:#002d24;
  --primary:#00c9a2;
  --primary-dark:#00a381;
  --gold:#f0c040;
  --light:#f4f9f8;
  --white:#ffffff;
  --muted:#52635d;
  --border:#d8e5e2;
  --error:#b33a3a;
  --radius:10px;
  --shadow:0 4px 20px rgba(0,45,36,0.08);
  --transition:all 0.3s ease;
}

* , *::before, *::after{ box-sizing: border-box; margin: 0; padding: 0; }
body{
  font-family: "Inter", sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display: block; }

.auth-page{
  padding: 40px 20px;
  min-height: calc(100vh - 160px);
}
.auth-container{
  max-width: 460px;
  margin: 0 auto;
}
.auth-header{
  text-align: center;
  margin-bottom: 34px;
}
.auth-header .logo{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Playfair Display", serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--dark);
}
.auth-header .logo .ser{ color: var(--primary); font-weight: 400; }
.auth-header h1{
  font-family: "Playfair Display", serif;
  font-size: 22px;
  margin-top: 10px;
  color: var(--dark);
}
.auth-header p{ color: var(--muted); font-size: 14px; margin-top: 6px; }

.auth-card{
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 24px;
  box-shadow: var(--shadow);
}
.auth-state{ display: none; }
.auth-state.active{ display: block; }

.form-group{ margin-bottom: 18px; }
.form-group label{
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--dark);
}
.form-group input{
  width: 100%;
  padding: 11px 14px;
  font-size: 16px;
  min-height: 46px;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--light);
  color: var(--dark);
}
.form-group input:focus{
  outline: none;
  border-color: var(--primary);
  background: var(--white);
}
.input-hint{
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 16px;
  min-height: 46px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}
.btn-primary{
  background: var(--primary);
  color: var(--dark);
  font-weight: 700;
}
.btn-primary:hover:not(:disabled){ background: var(--primary-dark); color: var(--dark); }
.btn-primary:disabled{
  background: #bcd6d2;
  color: #3d524e;
  cursor: not-allowed;
}
.btn-text{
  background: transparent;
  color: var(--dark);
  border: 1.5px solid var(--primary);
  margin-top: 10px;
}
.btn-text:hover:not(:disabled){ background: rgba(0,201,162,0.08); }
.btn-text:disabled{ color: #9cc4bd; border-color: #9cc4bd; cursor: not-allowed; }

.msg{
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  display: none;
}
.msg.show{ display: block; }
.msg-error{ background: #fdecec; color: var(--error); border: 1px solid #f5c2c2; }
.msg-success{ background: #e8f4ef; color: #1f7a46; border: 1px solid #b9dfca; }

/* 6-digit code field */
.code-row{ display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.code-input{
  width: 48px;
  height: 52px;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--light);
  color: var(--dark);
  font-feature-settings: "tnum";
}
.code-input:focus{ outline: none; border-color: var(--primary); background: var(--white); }
.code-input[disabled]{ background: #e3eae8; color: var(--muted); }
.code-step .email-note{ font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.code-step .email-note strong{ color: var(--dark); }

/* signed-in state */
.account-type{ margin-top: 12px; font-size: 15px; color: var(--dark); }
.account-type span{ font-weight: 700; color: #00735c; }

/* agency form */
.agency-section{
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.agency-section h3{
  font-size: 16px;
  margin-bottom: 14px;
  color: var(--dark);
}
.agency-note{ font-size: 13px; color: var(--muted); margin-bottom: 14px; }

/* links */
.auth-links{ margin-top: 16px; text-align: center; }
.auth-links a{
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 6px;
  font-size: 14px;
  font-weight: 500;
  color: #00735c;
  text-decoration: underline;
}
.auth-links a:hover{ color: var(--dark); }

/* footer note */
.auth-footer{ text-align: center; margin-top: 26px; font-size: 12px; color: var(--muted); }

/* responsive: no horizontal scroll at 375px */
@media (max-width: 480px){
  .auth-page{ padding: 24px 16px; }
  .auth-card{ padding: 22px 18px; }
  .auth-header h1{ font-size: 20px; }
  .code-input{ width: 42px; height: 46px; font-size: 18px; }
  .btn{ padding: 12px 16px; font-size: 15px; min-height: 46px; }
}
