/* Teto Player — login page (standalone, no Bootstrap form overrides) */

body.auth-page--login {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  font-family: 'Cairo', system-ui, -apple-system, sans-serif;
  color: #e5e7eb;
  color-scheme: dark;
  background:
    radial-gradient(circle at 12% 8%, #1e3a8a 0, transparent 42%),
    radial-gradient(circle at 88% 92%, #4c1d95 0, transparent 48%),
    linear-gradient(160deg, #0b1723 0%, #020617 100%);
}

.auth-shell {
  width: min(980px, 100%);
}

.auth-shell__card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.1), rgba(10, 14, 27, 0.97));
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.auth-shell__brand {
  padding: 28px 24px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.06), transparent 55%);
}

.auth-shell__form {
  padding: 28px 24px 22px;
}

.auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: rgba(2, 6, 23, 0.55);
  color: #38bdf8;
  font-size: 0.76rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.auth-badge i {
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.65);
}

.auth-title {
  margin: 0 0 10px;
  font-size: clamp(1.55rem, 3.5vw, 2.1rem);
  font-weight: 800;
  line-height: 1.2;
  color: #f8fafc;
}

.auth-lead {
  margin: 0;
  color: #94a3b8;
  font-size: 0.92rem;
  line-height: 1.55;
  max-width: 42ch;
}

.auth-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.auth-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(2, 6, 23, 0.5);
  color: #cbd5e1;
  font-size: 0.74rem;
  font-weight: 700;
}

.auth-chip i {
  color: #38bdf8;
  font-size: 0.82rem;
}

.auth-form-title {
  margin: 0 0 4px;
  font-size: 1.22rem;
  font-weight: 800;
  color: #f8fafc;
}

.auth-form-sub {
  margin: 0 0 18px;
  color: #94a3b8;
  font-size: 0.86rem;
  line-height: 1.45;
}

.auth-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 11px 13px;
  border-radius: 12px;
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.12);
  color: #fecaca;
  font-size: 0.86rem;
  font-weight: 600;
}

.auth-field {
  margin-bottom: 14px;
}

.auth-field label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #cbd5e1;
}

.auth-input-wrap {
  position: relative;
  display: block;
}

.auth-input {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 12px 14px 12px 46px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.42);
  background-color: #0f172a !important;
  background-image: none !important;
  color: #f8fafc !important;
  caret-color: #38bdf8;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.01em;
  outline: none;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  z-index: 1;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.auth-input::placeholder {
  color: #94a3b8 !important;
  opacity: 1;
  font-weight: 500;
}

.auth-input:focus {
  border-color: rgba(56, 189, 248, 0.9);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18);
  background-color: #0b1220 !important;
  color: #ffffff !important;
}

.auth-input:-webkit-autofill,
.auth-input:-webkit-autofill:hover,
.auth-input:-webkit-autofill:focus,
.auth-input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #0f172a inset !important;
  box-shadow: 0 0 0 1000px #0f172a inset !important;
  -webkit-text-fill-color: #f8fafc !important;
  caret-color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.55) !important;
  transition: background-color 99999s ease-out 0s;
}

.auth-input-wrap--pass .auth-input {
  padding-right: 48px;
  letter-spacing: 0.12em;
}

.auth-input__ico {
  position: absolute;
  top: 50%;
  left: 15px;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 0.9rem;
  pointer-events: none;
  z-index: 2;
}

.auth-input-wrap:focus-within .auth-input__ico {
  color: #38bdf8;
}

.auth-pass-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.85);
  color: #cbd5e1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  padding: 0;
}

.auth-pass-toggle i {
  font-size: 0.95rem;
  pointer-events: none;
}

.auth-pass-toggle:hover {
  background: rgba(148, 163, 184, 0.14);
  color: #f1f5f9;
}

/* Remember me — toggle card */
.auth-remember {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin: 6px 0 18px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(2, 6, 23, 0.55);
  cursor: pointer;
  user-select: none;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.auth-remember input[type='checkbox'] {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.auth-remember__switch {
  width: 46px;
  height: 26px;
  border-radius: 999px;
  border: 1.5px solid rgba(148, 163, 184, 0.45);
  background: rgba(15, 23, 42, 0.95);
  position: relative;
  flex-shrink: 0;
}

.auth-remember__switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #94a3b8;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, background 0.2s ease;
}

.auth-remember.is-on {
  border-color: rgba(56, 189, 248, 0.65);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.14), rgba(99, 102, 241, 0.1));
  box-shadow: 0 8px 22px rgba(56, 189, 248, 0.12);
}

.auth-remember.is-on .auth-remember__switch {
  border-color: transparent;
  background: linear-gradient(135deg, #38bdf8, #6366f1);
}

.auth-remember.is-on .auth-remember__switch::after {
  transform: translateX(20px);
  background: #020617;
}

.auth-remember__text {
  min-width: 0;
  flex: 1;
}

.auth-remember__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 800;
  color: #e2e8f0;
}

.auth-remember__title i {
  color: #38bdf8;
}

.auth-remember__hint {
  display: block;
  margin-top: 3px;
  font-size: 0.73rem;
  color: #94a3b8;
  line-height: 1.35;
}

.auth-submit {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.98rem;
  color: #020617 !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #38bdf8, #6366f1) !important;
  box-shadow: 0 12px 28px rgba(56, 189, 248, 0.22);
  transition: filter 0.18s ease, transform 0.18s ease;
}

.auth-submit:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.auth-foot {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.76rem;
  color: #64748b;
  font-weight: 600;
}

.auth-foot i {
  color: #38bdf8;
}

@media (min-width: 860px) {
  .auth-shell__card {
    grid-template-columns: 1.02fr 0.98fr;
  }

  .auth-shell__brand {
    border-bottom: 0;
    border-right: 1px solid rgba(148, 163, 184, 0.14);
    padding: 36px 32px;
    display: flex;
  flex-direction: column;
    justify-content: center;
  }

  .auth-shell__form {
    padding: 36px 32px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

@media (max-width: 420px) {
  body.auth-page--login {
    padding: 16px 12px;
  }

  .auth-shell__brand,
  .auth-shell__form {
    padding: 22px 18px;
  }
}
