/* ═══════════════════════════════════════════════════
   Login page — standalone (no Sitemesh decorator)
   Dark design system matching home/signup/contact
   ═══════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; margin: 0; padding: 0; }

.login-body {
  min-height: 100%;
  background: #09090f;
  font-family: 'Raleway', sans-serif;
  color: rgba(255,255,255,0.9);
  /* Subtle radial glow behind the card */
  background-image:
    radial-gradient(ellipse 60% 50% at 50% 60%, rgba(224,25,122,0.07) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 50% 35%, rgba(240,99,74,0.05) 0%, transparent 60%);
}

/* ── Page centring ── */
.login-page {
  min-height: 100vh;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  padding: 24px 16px;
}

/* ── Card ── */
.login-card {
  width: 100%;
  max-width: 420px;
  background: #121220;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 44px 44px 40px;
}

/* ── Logo ── */
.login-logo {
  text-align: center;
  margin-bottom: 28px;
}
.login-logo img {
  height: 36px;
  width: auto;
}

/* ── Eyebrow + title ── */
.login-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 6px;
  background: -webkit-linear-gradient(315deg, #f0634a, #e0197a);
  background: linear-gradient(135deg, #f0634a, #e0197a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}
.login-title {
  font-family: 'Cinzel', serif;
  font-size: 26px;
  font-weight: 700;
  color: rgba(255,255,255,0.93);
  text-align: center;
  letter-spacing: 0.05em;
  margin-bottom: 28px;
}

/* ── Alerts ── */
.login-alert {
  border-radius: 6px;
  padding: 11px 14px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 20px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 9px;
}
.login-alert-error {
  background: rgba(240,99,74,0.1);
  border: 1px solid rgba(240,99,74,0.25);
  color: #f0a090;
}
.login-alert-success {
  background: rgba(74,222,128,0.08);
  border: 1px solid rgba(74,222,128,0.2);
  color: #6ee7a0;
}

/* ── Form fields ── */
.login-field {
  margin-bottom: 20px;
}
.login-label-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: baseline;
      -ms-flex-align: baseline;
          align-items: baseline;
  margin-bottom: 6px;
}
.login-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}
.login-label-row .login-label { margin-bottom: 0; }
.login-status {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin-top: 6px;
  min-height: 15px;
}
.login-forgot {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  -webkit-transition: color 0.2s;
  transition: color 0.2s;
  font-family: 'Raleway', sans-serif;
}
.login-forgot:hover { color: rgba(255,255,255,0.7); text-decoration: none; }

/* Input + password toggle wrapper */
.login-input-wrap {
  position: relative;
}
.login-input {
  display: block;
  width: 100%;
  height: 48px;
  background: #181828;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 6px;
  padding: 0 44px 0 14px;
  font-family: 'Raleway', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: rgba(255,255,255,0.9);
  outline: none;
  -webkit-transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
          transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  /* Reset browser defaults */
  -webkit-appearance: none;
          appearance: none;
}
.login-field:not(.login-field--pw) .login-input {
  padding-right: 14px;
}
.login-input::-webkit-input-placeholder { color: rgba(255,255,255,0.22); }
.login-input::-moz-placeholder          { color: rgba(255,255,255,0.22); }
.login-input::placeholder               { color: rgba(255,255,255,0.22); }
.login-input:focus {
  background: #1e1e30;
  border-color: rgba(240,99,74,0.45);
  -webkit-box-shadow: 0 0 0 3px rgba(240,99,74,0.10);
          box-shadow: 0 0 0 3px rgba(240,99,74,0.10);
  color: #fff;
}

/* Password toggle button */
.login-pw-toggle {
  position: absolute;
  top: 0;
  right: 0;
  height: 48px;
  width: 44px;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.3);
  cursor: pointer;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  font-size: 15px;
  padding: 0;
  -webkit-transition: color 0.2s;
          transition: color 0.2s;
}
.login-pw-toggle:hover { color: rgba(255,255,255,0.65); }

/* ── Sign-in button ── */
.login-btn {
  display: block;
  width: 100%;
  height: 50px;
  margin-top: 28px;
  background: -webkit-linear-gradient(315deg, #f0634a, #e0197a);
  background: linear-gradient(135deg, #f0634a, #e0197a);
  border: none;
  border-radius: 6px;
  color: #fff;
  font-family: 'Raleway', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  -webkit-transition: opacity 0.2s, -webkit-box-shadow 0.25s;
          transition: opacity 0.2s, box-shadow 0.25s;
}
.login-btn:hover {
  opacity: 0.88;
  -webkit-box-shadow: 0 0 28px rgba(224,25,122,0.28);
          box-shadow: 0 0 28px rgba(224,25,122,0.28);
}
.login-btn:focus {
  outline: none;
  -webkit-box-shadow: 0 0 0 3px rgba(240,99,74,0.35);
          box-shadow: 0 0 0 3px rgba(240,99,74,0.35);
}

/* ── Divider ── */
.login-divider {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 12px;
  margin: 28px 0 20px;
  color: rgba(255,255,255,0.2);
  font-size: 12px;
}
.login-divider::before,
.login-divider::after {
  content: '';
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.07);
}

/* ── Sign-up button ── */
.login-signup-btn {
  display: block;
  width: 100%;
  height: 46px;
  line-height: 44px;
  text-align: center;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 6px;
  color: rgba(255,255,255,0.7);
  font-family: 'Raleway', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  -webkit-transition: border-color 0.2s, color 0.2s, background 0.2s;
          transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.login-signup-btn:hover {
  border-color: rgba(255,255,255,0.3);
  color: #fff;
  background: rgba(255,255,255,0.04);
  text-decoration: none;
}

/* ══ MOBILE ══════════════════════════════════════════ */
@media (max-width: 480px) {
  .login-card {
    padding: 36px 24px 32px;
    border-radius: 12px;
  }
  .login-logo img { height: 30px; }
  .login-title { font-size: 22px; }
}

/* Very small screens — card goes edge-to-edge with rounded top only */
@media (max-width: 360px) {
  .login-page { padding: 0; -webkit-box-align: end; -ms-flex-align: end; align-items: flex-end; }
  .login-card {
    border-radius: 16px 16px 0 0;
    padding: 32px 20px 28px;
    max-width: 100%;
    border-bottom: none;
  }
}

/* ═══════════════════════════════════════════════════
   Signup page — extends login design system
   ═══════════════════════════════════════════════════ */

/* Wider card to fit the longer form */
.signup-page { -webkit-box-align: start; -ms-flex-align: start; align-items: flex-start; padding-top: 48px; }
.signup-card { max-width: 540px; }

/* Subtitle under the title */
.signup-subtitle {
  font-size: 14px;
  color: rgba(255,255,255,0.4);
  text-align: center;
  margin-bottom: 28px;
  line-height: 1.55;
  font-family: 'Raleway', sans-serif;
}

/* Alerts */
.signup-alert {
  border-radius: 6px;
  padding: 11px 14px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 20px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 9px;
}
.signup-alert-error {
  background: rgba(240,99,74,0.1);
  border: 1px solid rgba(240,99,74,0.25);
  color: #f0a090;
}

/* Two-column row */
.signup-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 14px;
}
.signup-row .signup-field {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  min-width: 0;
}

/* Field wrapper */
.signup-field { margin-bottom: 20px; }

/* Hint text (password requirements) */
.signup-hint {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  margin: -10px 0 18px;
  font-family: 'Raleway', sans-serif;
  line-height: 1.5;
}

/* Select inherits login-input shape */
select.login-input {
  -webkit-appearance: none;
          appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='rgba(255,255,255,0.35)'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}
select.login-input option { background: #181828; color: rgba(255,255,255,0.9); }

/* Date input group — keep Bootstrap's input-group/input-group-addon classes, override colours */
.signup-card .input-group .login-input {
  border-radius: 6px 0 0 6px;
}
.signup-card .input-group-addon {
  background: #181828;
  border: 1px solid rgba(255,255,255,0.10);
  border-left: none;
  border-radius: 0 6px 6px 0;
  color: rgba(255,255,255,0.35);
  font-size: 14px;
  -webkit-transition: background 0.2s;
          transition: background 0.2s;
}
.signup-card .input-group-addon:hover { background: #1e1e30; color: rgba(255,255,255,0.6); }

/* Checkbox rows */
.signup-check {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.signup-check input[type=checkbox] {
  width: 16px;
  height: 16px;
  margin: 0;
  -webkit-flex-shrink: 0;
      -ms-flex-negative: 0;
          flex-shrink: 0;
  accent-color: #e0197a;
  cursor: pointer;
}
.signup-check label {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  font-family: 'Raleway', sans-serif;
  margin: 0;
  cursor: pointer;
}
.signup-check label a { color: #f0634a; text-decoration: none; }
.signup-check label a:hover { text-decoration: underline; }

/* Divider between form sections */
.signup-divider {
  border-top: 1px solid rgba(255,255,255,0.07);
  margin: 10px 0 18px;
}

/* Validation error state */
.signup-field.has-error .login-input {
  border-color: rgba(240,99,74,0.5) !important;
}
.signup-field span.help-block {
  font-size: 12px;
  color: #f0a090;
  margin-top: 4px;
  display: block;
  font-family: 'Raleway', sans-serif;
}

/* Datepicker dark theme */
.datepicker,
.datepicker-dropdown,
.datepicker .datepicker-days,
.datepicker .datepicker-months,
.datepicker .datepicker-years {
  background: #181828 !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  border-radius: 6px !important;
  color: rgba(255,255,255,0.8) !important;
}
.datepicker::before { border-bottom-color: rgba(255,255,255,0.12) !important; }
.datepicker::after  { border-bottom-color: #181828 !important; }
.datepicker table { background: transparent !important; }
.datepicker table tr td,
.datepicker table tr th {
  color: rgba(255,255,255,0.8) !important;
  background: transparent !important;
  border: none !important;
  border-radius: 4px !important;
}
.datepicker table tr th.dow { color: rgba(255,255,255,0.35) !important; }
.datepicker table tr th.switch,
.datepicker table tr th.prev,
.datepicker table tr th.next { color: rgba(255,255,255,0.7) !important; }
.datepicker table tr th.switch:hover,
.datepicker table tr th.prev:hover,
.datepicker table tr th.next:hover,
.datepicker table tr td:hover,
.datepicker table tr td span:hover { background: rgba(255,255,255,0.08) !important; color: #fff !important; }
.datepicker table tr td.old,
.datepicker table tr td.new { color: rgba(255,255,255,0.25) !important; }
.datepicker table tr td.today,
.datepicker table tr td.today:hover {
  background: rgba(240,99,74,0.15) !important;
  color: #f0634a !important;
}
.datepicker table tr td.active,
.datepicker table tr td.active:hover,
.datepicker table tr td.active.disabled,
.datepicker table tr td.active.disabled:hover {
  background: linear-gradient(135deg, #f0634a, #e0197a) !important;
  color: #fff !important;
  text-shadow: none !important;
}
.datepicker table tr td span { color: rgba(255,255,255,0.8) !important; background: transparent !important; }
.datepicker table tr td span.active { background: linear-gradient(135deg, #f0634a, #e0197a) !important; color: #fff !important; }

/* Host competitions card option */
.signup-host-option {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  margin-bottom: 20px;
  cursor: pointer;
  -webkit-transition: border-color 0.2s, background 0.2s;
          transition: border-color 0.2s, background 0.2s;
  background: rgba(255,255,255,0.02);
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}
.signup-host-option:hover {
  border-color: rgba(240,99,74,0.35);
  background: rgba(240,99,74,0.04);
}
.signup-host-option.active {
  border-color: #e0197a;
  background: rgba(224,25,122,0.07);
}
.signup-host-icon {
  font-size: 18px;
  color: rgba(255,255,255,0.3);
  -ms-flex-negative: 0;
      flex-shrink: 0;
  width: 26px;
  text-align: center;
  -webkit-transition: color 0.2s;
          transition: color 0.2s;
}
.signup-host-option.active .signup-host-icon { color: #e0197a; }
.signup-host-body {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  min-width: 0;
}
.signup-host-title {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  font-family: 'Raleway', sans-serif;
  line-height: 1.3;
  -webkit-transition: color 0.2s;
          transition: color 0.2s;
}
.signup-host-option.active .signup-host-title { color: rgba(255,255,255,0.95); }
.signup-host-desc {
  font-size: 12px;
  color: rgba(255,255,255,0.32);
  font-family: 'Raleway', sans-serif;
  margin-top: 2px;
  line-height: 1.4;
}
.signup-host-indicator {
  font-size: 18px;
  color: rgba(255,255,255,0.12);
  -ms-flex-negative: 0;
      flex-shrink: 0;
  -webkit-transition: color 0.2s;
          transition: color 0.2s;
}
.signup-host-option.active .signup-host-indicator { color: #e0197a; }

/* ══ SIGNUP MOBILE ═══════════════════════════════════ */
@media (max-width: 580px) {
  .signup-page { padding: 32px 16px 60px; }
  .signup-card { padding: 36px 24px 32px; border-radius: 12px; }
  .signup-row { -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; gap: 0; }
}
@media (max-width: 360px) {
  .signup-page { padding: 0; -webkit-box-align: end; -ms-flex-align: end; align-items: flex-end; }
  .signup-card {
    border-radius: 16px 16px 0 0;
    padding: 32px 20px 28px;
    max-width: 100%;
    border-bottom: none;
  }
}
