@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;500;600;700&display=swap');

/* ── Selection (matches home page) ──────────────────────────────────── */
::selection      { background: #ffe20f; color: #fff; }
::-moz-selection { background: #ffe20f; color: #fff; }

/* ── Layout ─────────────────────────────────────────────────────────── */
body.auth-page {
  min-height: 100vh;
  background-color: #1e1e1e;
  background-image:
    radial-gradient(ellipse at 15% 60%, rgba(255, 226, 15, 0.06) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 20%, rgba(59, 86, 110, 0.18) 0%, transparent 55%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  font-family: 'Raleway', sans-serif;
  font-size: 16px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  box-sizing: border-box;
}

/* ── Card ────────────────────────────────────────────────────────────── */
.auth-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  width: 100%;
  max-width: 440px;
  overflow: hidden;
}

.auth-card-header {
  /* background: #1e1e1e; */
  padding: 28px 36px 22px;
  text-align: center;
  border-bottom: 3px solid #ffe20f;
}

.auth-card-body {
  padding: 30px 36px 32px;
}

/* ── Logo ────────────────────────────────────────────────────────────── */
.auth-logo { display: inline-block; }
.auth-logo img {
    height: 65px;
    width: auto;
    max-width: 260px;
    object-fit: contain;
    display: block;
}

/* ── Headings ────────────────────────────────────────────────────────── */
.auth-title {
  font-size: 24px;
  font-weight: 500;
  color: #1e1e1e;
  letter-spacing: 0.25px;
  margin: 0 0 8px;
  text-align: center;
}

.auth-subtitle {
  font-size: 15px;
  font-weight: 400;
  color: #777;
  line-height: 28px;
  letter-spacing: 1px;
  margin: 0 0 26px;
  text-align: center;
}

.auth-subtitle a {
  color: #1e1e1e;
  font-weight: 500;
  text-decoration: none;
}

.auth-subtitle a:hover { color: #ffe20f; }

/* ── Fields ──────────────────────────────────────────────────────────── */
.field-group {
  position: relative;
  margin-bottom: 14px;
}

.field-group .field-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #aaa;
  font-size: 14px;
  pointer-events: none;
  z-index: 1;
}

.field-group .form-control {
  padding-left: 44px;
  height: 50px;
  border-radius: 25px;
  border: 1px solid #eee;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  color: #777;
  letter-spacing: 0.5px;
  transition: border-color .2s, box-shadow .2s;
  box-sizing: border-box;
  width: 100%;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.field-group .form-control:focus {
  border-color: #ffe20f;
  box-shadow: 0 0 0 3px rgba(255, 226, 15, 0.22);
  outline: none;
}

.field-group .form-control[readonly] {
  background-color: #f5f5f5;
  color: #aaa;
}

/* ── Phone row ───────────────────────────────────────────────────────── */
.phone-row {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.phone-row .phone-select {
  flex: 0 0 auto;
  width: 155px;
  height: 50px;
  border-radius: 25px;
  border: 1px solid #eee;
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  color: #777;
  letter-spacing: 0.5px;
  padding: 0 14px;
  background-color: #fff;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.phone-row .phone-select:focus {
  border-color: #ffe20f;
  box-shadow: 0 0 0 3px rgba(255, 226, 15, .22);
  outline: none;
}

.phone-row .field-group { flex: 1; margin-bottom: 0; }

/* ── Submit button ───────────────────────────────────────────────────── */
.btn-auth {
  display: block;
  width: 100%;
  border: none;
  border-radius: 20px;
  background: #ffe20f;
  color: #1e1e1e;
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.25px;
  padding: 14px 20px;
  cursor: pointer;
  margin-top: 10px;
  -webkit-transition: all 0.3s ease 0s;
  -moz-transition: all 0.3s ease 0s;
  -o-transition: all 0.3s ease 0s;
  transition: all 0.3s ease 0s;
}

.btn-auth:hover {
  background-color: #1e1e1e;
  color: #fff;
}

/* ── Inline button (status pages) ───────────────────────────────────── */
.btn-auth-inline {
  display: inline-block;
  border: none;
  border-radius: 20px;
  background: #ffe20f;
  color: #1e1e1e;
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.25px;
  padding: 12px 24px;
  text-decoration: none;
  cursor: pointer;
  -webkit-transition: all 0.3s ease 0s;
  -moz-transition: all 0.3s ease 0s;
  -o-transition: all 0.3s ease 0s;
  transition: all 0.3s ease 0s;
}

.btn-auth-inline:hover {
  background-color: #1e1e1e;
  color: #fff;
}

/* ── Auth footer links ───────────────────────────────────────────────── */
.auth-links {
  text-align: center;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #eee;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 1px;
  color: #777;
}

.auth-links a {
  color: #1e1e1e;
  font-weight: 500;
  text-decoration: none;
  -webkit-transition: all 0.3s ease 0s;
  transition: all 0.3s ease 0s;
}

.auth-links a:hover { color: #ffe20f; }

/* ── Status icons (activation / message pages) ───────────────────────── */
.status-icon { font-size: 3rem; margin-bottom: 16px; display: block; }
.status-icon.status-success { color: #16a34a; }
.status-icon.status-danger  { color: #dc2626; }
.status-icon.status-warning { color: #d97706; }

/* ── Page-level copyright ────────────────────────────────────────────── */
.auth-copy {
  margin-top: 20px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
}

.auth-copy a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  -webkit-transition: all 0.3s ease 0s;
  transition: all 0.3s ease 0s;
}
.auth-copy a:hover { color: #ffe20f; }

/* ── Validation errors ─────────────────────────────────────────────── */
.field-error {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.25px;
  color: #dc2626;
  margin-top: 6px;
  padding-left: 14px;
  display: block;
}

/* ── Password toggle ─────────────────────────────────────────────────────── */
.field-group .pwd-toggle {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #aaa;
  cursor: pointer;
  font-size: 14px;
  padding: 0;
  z-index: 2;
  line-height: 1;
}
.field-group .pwd-toggle:hover { color: #1e1e1e; }
.field-group .pwd-toggle:focus { outline: none; }

/* ── Complete-infos card (wider variant) ─────────────────────────────────── */
.complete-card { max-width: 800px; }
.complete-card .auth-card-body { padding: 30px 36px 36px; }

.field-label {
  font-size: 13px;
  font-weight: 500;
  color: #555;
  margin-bottom: 6px;
  display: block;
  letter-spacing: 0.25px;
}

.form-group { margin-bottom: 16px; }

.form-control {
  height: 46px;
  border-radius: 8px;
  border: 1px solid #eee;
  font-family: 'Raleway', sans-serif;
  font-size: 14px;
  color: #555;
  width: 100%;
  box-sizing: border-box;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.form-control:focus {
  border-color: #ffe20f;
  box-shadow: 0 0 0 3px rgba(255, 226, 15, 0.22);
  outline: none;
}

.section-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #bbb;
  margin: 24px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid #f0f0f0;
}

/* ── Required star & field description ─────────────────────────────── */
.required-star { color: #e74c3c; margin-left: 2px; font-weight: 700; }
.field-desc { display: block; margin-top: 2px; font-size: 11px; color: #aaa; }

/* ── Date input group ───────────────────────────────────────────────── */
.auth-card .input-group.date .form-control { border-radius: 24px 0 0 24px; }
.auth-card .input-group.date .input-group-btn .btn { border-radius: 0 24px 24px 0; border: 1.5px solid #e5e5e5; border-left: 0; background: #f8f8f8; color: #888; }
.auth-card .input-group.date .input-group-btn .btn:hover { background: #ffe20f; color: #fff; border-color: #ffe20f; }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .auth-card-header { padding: 22px 20px 18px; }
  .auth-card-body   { padding: 24px 20px 28px; }
  .phone-row .phone-select { width: 115px; font-size: 12px; }
  .auth-title { font-size: 20px; }
  .complete-card .auth-card-body { padding: 24px 16px 28px; }
}
