/* ============================================================
   Skyln Resorts (design recreation) - Auth pages
   ============================================================ */

:root {
  --primary: #1668e3;
  --primary-dark: #0f56c0;
  --primary-ring: rgba(22, 104, 227, 0.14);
  --yellow: #fddb32;
  --ink: #191e3b;
  --muted: #676a7d;
  --soft: #818494;
  --border: #d9dce3;
  --panel-bg: #f4f6fb;
  --success: #227950;
  --success-bg: #e7f6ee;
  --success-bd: #c3e8d3;
  --error: #a7183c;
  --error-bg: #fdeef1;
  --error-bd: #f6cdd6;
  --info: #0f4ea8;
  --info-bg: #e8f1fd;
  --info-bd: #c4dcf9;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --navy-1: #0b1530;
  --navy-2: #12234f;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: #fff;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }

/* ------------------------------------------------------------
   Layout
   ------------------------------------------------------------ */

.auth-wrap {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 100vh;
}

/* ------------------------------------------------------------
   Brand panel
   ------------------------------------------------------------ */

.auth-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 34px 46px 38px;
  color: #fff;
  background: linear-gradient(165deg, var(--navy-1) 0%, var(--navy-2) 55%, var(--primary) 135%);
}

.brand-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}

.brand-glow--one { width: 360px; height: 360px; background: rgba(22, 104, 227, 0.55); top: -110px; right: -90px; }
.brand-glow--two { width: 320px; height: 320px; background: rgba(253, 219, 50, 0.14); bottom: -120px; left: -80px; }

.brand-grid {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 38px 38px;
  -webkit-mask-image: radial-gradient(120% 100% at 50% 0%, #000 28%, transparent 100%);
  mask-image: radial-gradient(120% 100% at 50% 0%, #000 28%, transparent 100%);
}

.brand-top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-logo { display: inline-flex; align-items: center; }

.brand-logo-img { height: 26px; max-width: 150px; object-fit: contain; }

.brand-logo-name {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: #fff;
  max-width: 240px;
  overflow-wrap: anywhere;
}
.brand-logo-name::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fddb32;
  margin-left: 4px;
  vertical-align: 3px;
}

.brand-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
}

.brand-back:hover { color: #fff; }

.brand-body { position: relative; margin: 34px 0 30px; }

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-title {
  margin: 20px 0 12px;
  font-size: 42px;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-sub {
  max-width: 440px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
  line-height: 1.6;
}

.brand-features {
  list-style: none;
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.brand-features li {
  display: flex;
  align-items: center;
  gap: 14px;
}

.feature-ico {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--yellow);
}

.brand-features strong { display: block; font-size: 15px; }
.brand-features li > div > span { display: block; margin-top: 1px; font-size: 13.5px; color: rgba(255, 255, 255, 0.66); }

.brand-stats {
  position: relative;
  display: flex;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 22px;
}

.brand-stats > div { flex: 1; }
.brand-stats > div + div { border-left: 1px solid rgba(255, 255, 255, 0.12); padding-left: 22px; margin-left: 22px; }
.brand-stats strong { display: block; font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
.brand-stats span { font-size: 12.5px; color: rgba(255, 255, 255, 0.6); }

/* ------------------------------------------------------------
   Form panel
   ------------------------------------------------------------ */

.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 28px;
  background: linear-gradient(180deg, #ffffff 0%, var(--panel-bg) 100%);
}

.auth-card {
  width: 100%;
  max-width: 452px;
  background: #fff;
  border: 1px solid #e7e9ef;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(13, 25, 54, 0.08);
  padding: 38px 38px 32px;
  animation: rise 0.45s ease both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.auth-head { margin-bottom: 22px; }

.auth-head h2 { font-size: 27px; font-weight: 800; letter-spacing: -0.02em; }

.auth-head p { margin-top: 6px; color: var(--muted); font-size: 14.5px; }

/* ------------------------------------------------------------
   Alerts / flash
   ------------------------------------------------------------ */

.flash-stack { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }

.alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border-radius: 11px;
  font-size: 14px;
  border: 1px solid transparent;
}

.alert p { flex: 1; min-width: 0; }
.alert-ico { display: grid; place-items: center; flex-shrink: 0; }
.alert-close { background: none; border: none; font-size: 19px; line-height: 1; color: inherit; cursor: pointer; opacity: 0.55; padding: 0 2px; }
.alert-close:hover { opacity: 1; }

.alert-success { background: var(--success-bg); color: var(--success); border-color: var(--success-bd); }
.alert-error { background: var(--error-bg); color: var(--error); border-color: var(--error-bd); }
.alert-info { background: var(--info-bg); color: var(--info); border-color: var(--info-bd); }

/* ------------------------------------------------------------
   Social buttons + divider
   ------------------------------------------------------------ */

.social-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.social-btn {
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.social-btn:hover { background: #f4f6fa; border-color: #c6cad3; transform: translateY(-1px); }

.brand-signin {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0d1936 0%, #1668e3 100%);
  color: #dfe6f5;
  box-shadow: 0 4px 14px rgba(22, 104, 227, 0.18);
}

.brand-signin-ico {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.brand-signin-txt {
  font-size: 14px;
  line-height: 1.4;
}

.brand-signin-txt strong {
  display: block;
  color: #fff;
  font-size: 15.5px;
  letter-spacing: 0.2px;
}

.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 20px 0;
  color: var(--soft);
  font-size: 13px;
  white-space: nowrap;
}

.divider::before,
.divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* ------------------------------------------------------------
   Form fields
   ------------------------------------------------------------ */

.field { margin-bottom: 17px; }

.field label {
  display: block;
  margin-bottom: 7px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}

.input { position: relative; display: flex; align-items: center; }

.input > svg {
  position: absolute;
  left: 15px;
  z-index: 1;
  color: var(--soft);
  pointer-events: none;
}

.input input {
  width: 100%;
  height: 48px;
  padding: 0 14px 0 44px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.input input::placeholder { color: #a6abb8; }

.input input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-ring);
}

.input:has(.input-toggle) input { padding-right: 50px; }

.input-toggle {
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: var(--soft);
  cursor: pointer;
}

.input-toggle:hover { background: #f0f3f8; color: var(--ink); }

.has-error .input input { border-color: var(--error); }
.has-error .input input:focus { box-shadow: 0 0 0 4px rgba(167, 24, 60, 0.12); }

.field-error {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--error);
}

.field-hint { margin-top: 6px; font-size: 12.5px; color: var(--soft); }

.form-grid { display: grid; gap: 14px; }
.form-grid--two { grid-template-columns: 1fr 1fr; }

/* ------------------------------------------------------------
   Password strength
   ------------------------------------------------------------ */

.strength {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 9px;
}

.strength-bars { display: flex; gap: 4px; }

.strength-bars span {
  width: 26px;
  height: 5px;
  border-radius: 3px;
  background: #e5e8ef;
  transition: background 0.2s;
}

.strength-label {
  font-style: normal;
  font-size: 12px;
  color: var(--soft);
}

.strength.is-1 .strength-bars span:nth-child(1) { background: #d93535; }
.strength.is-2 .strength-bars span:nth-child(-n+2) { background: #f08c00; }
.strength.is-3 .strength-bars span:nth-child(-n+3) { background: #3aa76d; }
.strength.is-4 .strength-bars span { background: var(--success); }

/* ------------------------------------------------------------
   Checkbox
   ------------------------------------------------------------ */

.check {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.check input { position: absolute; opacity: 0; width: 0; height: 0; }

.check-box {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  flex-shrink: 0;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  background: #fff;
  display: grid;
  place-items: center;
  color: #fff;
  transition: background 0.15s, border-color 0.15s;
}

.check-box svg { opacity: 0; transition: opacity 0.15s; }

.check input:checked + .check-box { background: var(--primary); border-color: var(--primary); }
.check input:checked + .check-box svg { opacity: 1; }
.check input:focus-visible + .check-box { box-shadow: 0 0 0 4px var(--primary-ring); }

.check-text { font-size: 14px; line-height: 1.5; }
.check-text a { font-weight: 600; }

.check.has-error .check-box { border-color: var(--error); }

/* ------------------------------------------------------------
   Login extras
   ------------------------------------------------------------ */

.login-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.forgot {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
}

.forgot:hover { text-decoration: underline; }

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */

.btn-primary {
  height: 48px;
  padding: 0 26px;
  border: none;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s, transform 0.15s;
}

.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 10px 22px rgba(22, 104, 227, 0.28); transform: translateY(-1px); }
.btn-primary:active { transform: none; }

.btn-block { width: 100%; }

.auth-alt {
  margin-top: 24px;
  text-align: center;
  font-size: 14.5px;
  color: var(--muted);
}

.auth-alt a { font-weight: 700; }

/* ------------------------------------------------------------
   Success / status panel
   ------------------------------------------------------------ */

.auth-success {
  text-align: center;
  padding: 6px 4px 2px;
}

.auth-success-ico {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--success-bg);
  color: var(--success);
}

.auth-success h2 {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--ink);
}

.auth-success p {
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted);
}

.auth-success p strong { color: var(--ink); }

.auth-success-sub {
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--soft);
}

/* ------------------------------------------------------------
   Toast
   ------------------------------------------------------------ */

.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translate(-50%, 18px);
  z-index: 300;
  max-width: min(90vw, 420px);
  padding: 13px 20px;
  border-radius: 12px;
  background: #0c1220;
  color: #fff;
  font-size: 14px;
  box-shadow: 0 14px 34px rgba(12, 18, 32, 0.32);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s, opacity 0.25s;
}

.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */

@media (max-width: 980px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-brand {
    display: block;
    padding: 18px 20px 0;
  }
  .brand-glow,
  .brand-grid,
  .brand-body,
  .brand-stats { display: none; }
  .auth-panel { padding: 40px 20px; }
}

@media (max-width: 560px) {
  .auth-card { padding: 28px 22px 26px; border-radius: 16px; }
  .form-grid--two { grid-template-columns: 1fr; }
  .social-row { grid-template-columns: 1fr; }
  .brand-title { font-size: 34px; }
}
