/* ==========================================================================
   SHT LMS — Login page (Split Signal direction)
   Scoped entirely under body.sht-login — loaded ONLY by auth/login.blade.php.
   Tokens mirror public/css/sht-brand.css (:root there is not loaded here).
   ========================================================================== */

.sht-login {
  --sht-bg: #0a0a0a;
  --sht-surface-1: #141414;
  --sht-input-bg: #0f0f0f;
  --sht-accent: #2c72dc;
  --sht-accent-bright: #5d97ea;
  --sht-accent-hover: #1f5cb8;
  --sht-text: #f5f5f5;
  --sht-text-muted: #a3a3a3;
  --sht-text-faint: #6b6b6b;
  --sht-border: #2a2a2a;
  --sht-danger: #e5484d;
  --sht-danger-text: #ff8589;
  --sht-success-text: #6ee7b7;
}

.sht-login,
.sht-login *,
.sht-login *::before,
.sht-login *::after {
  box-sizing: border-box;
}

.sht-login {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--sht-text);
  background: var(--sht-bg);
  -webkit-font-smoothing: antialiased;
}

.sht-split {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  min-height: 100vh;
  min-height: 100dvh;
}

/* --- Left: brand panel ------------------------------------------------------ */

.sht-panel-brand {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 44px 48px;
  background-color: var(--sht-bg);
  background-image:
    radial-gradient(720px 540px at 18% 85%, rgba(44, 114, 220, 0.2), transparent 65%),
    linear-gradient(rgba(245, 245, 245, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 245, 245, 0.03) 1px, transparent 1px);
  background-size: auto, 100% 88px, 88px 100%;
}

.sht-logo {
  width: 172px;
  height: auto;
}

.sht-hero h1 {
  margin: 0;
  font-family: "Space Grotesk", -apple-system, sans-serif;
  font-size: clamp(34px, 3.6vw, 50px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--sht-text);
}

.sht-line {
  display: block;
  animation: sht-rise-b 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.sht-line + .sht-line {
  animation-delay: 0.1s;
}

.sht-line-accent {
  color: var(--sht-accent-bright);
}

.sht-hero-sub {
  margin: 18px 0 0;
  font-size: 15px;
  color: var(--sht-text-muted);
  animation: sht-rise-b 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.sht-panel-foot {
  margin: 0;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--sht-text-faint);
}

/* --- Right: form panel -------------------------------------------------------- */

.sht-panel-form {
  display: grid;
  place-items: center;
  padding: 48px 40px;
  background: var(--sht-surface-1);
  border-left: 1px solid var(--sht-border);
  animation: sht-fade-b 0.5s ease 0.1s both;
}

.sht-form-col {
  width: min(360px, 100%);
}

.sht-form-col h2 {
  margin: 0 0 4px;
  font-family: "Space Grotesk", -apple-system, sans-serif;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--sht-text);
}

.sht-form-sub {
  margin: 0 0 24px;
  font-size: 14px;
  color: var(--sht-text-muted);
}

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

.sht-alert {
  border-radius: 10px;
  border: 1px solid;
  padding: 10px 14px;
  margin-bottom: 18px;
  font-size: 13.5px;
  line-height: 1.5;
}

.sht-alert-success {
  background: rgba(52, 211, 153, 0.1);
  border-color: rgba(52, 211, 153, 0.35);
  color: var(--sht-success-text);
}

.sht-alert-danger {
  background: rgba(229, 72, 77, 0.12);
  border-color: rgba(229, 72, 77, 0.4);
  color: var(--sht-danger-text);
}

/* --- Fields ----------------------------------------------------------------------- */

.sht-field {
  margin-bottom: 16px;
}

.sht-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #d4d4d4;
}

.sht-input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  font-size: 16px;
  font-family: inherit;
  color: var(--sht-text);
  background: var(--sht-input-bg);
  border: 1px solid var(--sht-border);
  border-radius: 10px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sht-input::placeholder {
  color: var(--sht-text-faint);
}

.sht-input:focus {
  outline: none;
  border-color: var(--sht-accent);
  box-shadow: 0 0 0 3px rgba(44, 114, 220, 0.22);
}

.sht-input.is-invalid {
  border-color: var(--sht-danger);
}

.sht-input.is-invalid:focus {
  box-shadow: 0 0 0 3px rgba(229, 72, 77, 0.2);
}

.sht-error {
  margin: 6px 0 0;
  font-size: 12.5px;
  color: var(--sht-danger-text);
}

/* Password + visibility toggle */

.sht-pw-wrap {
  position: relative;
}

.sht-pw-wrap .sht-input {
  padding-right: 44px;
}

.sht-pw-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: var(--sht-text-muted);
  cursor: pointer;
  transition: color 0.15s ease;
}

.sht-pw-toggle:hover {
  color: var(--sht-text);
}

.sht-pw-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(44, 114, 220, 0.4);
}

.sht-pw-toggle svg {
  width: 18px;
  height: 18px;
}

.sht-pw-toggle .sht-eye-off {
  display: none;
}

.sht-pw-toggle.is-visible .sht-eye {
  display: none;
}

.sht-pw-toggle.is-visible .sht-eye-off {
  display: block;
}

/* --- Submit -------------------------------------------------------------------------- */

.sht-submit {
  width: 100%;
  height: 44px;
  margin-top: 4px;
  border: 0;
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  background: var(--sht-accent);
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.sht-submit:hover {
  background: var(--sht-accent-hover);
  box-shadow: 0 8px 24px -8px rgba(44, 114, 220, 0.55);
}

.sht-submit:active {
  transform: translateY(1px);
}

.sht-submit:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(44, 114, 220, 0.35);
}

/* --- Meta row -------------------------------------------------------------------------- */

.sht-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
}

.sht-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--sht-text-muted);
  cursor: pointer;
}

.sht-remember input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--sht-accent);
  cursor: pointer;
}

.sht-forgot {
  font-size: 13px;
  color: var(--sht-accent-bright);
  text-decoration: none;
}

.sht-forgot:hover {
  color: #8ab4f0;
  text-decoration: underline;
}

/* --- Motion -------------------------------------------------------------------------------- */

@keyframes sht-rise-b {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes sht-fade-b {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sht-line,
  .sht-hero-sub,
  .sht-panel-form {
    animation: none;
  }
}

/* --- Small screens ---------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .sht-split {
    grid-template-columns: 1fr;
    min-height: 100vh;
    min-height: 100dvh;
  }

  .sht-panel-brand {
    justify-content: flex-start;
    gap: 20px;
    padding: 28px 20px 32px;
  }

  .sht-logo {
    width: 148px;
  }

  .sht-hero h1 {
    font-size: clamp(26px, 7vw, 34px);
  }

  .sht-hero-sub {
    margin-top: 10px;
    font-size: 14px;
  }

  .sht-panel-foot {
    display: none;
  }

  .sht-panel-form {
    border-left: 0;
    border-top: 1px solid var(--sht-border);
    padding: 28px 16px 40px;
    place-items: start center;
  }
}
