/**
 * StatusX public/marketing UI — matches https://www.statusx.com
 * Load statusx-design-tokens.css before this file.
 */

* {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
}

body.sx-marketing-body {
  min-height: 100vh;
  margin: 0;
  background: var(--sx-navy);
}

.sx-login-page {
  min-height: 100vh;
  display: flex;
  flex-wrap: wrap;
}

.sx-login-hero {
  flex: 1 1 420px;
  position: relative;
  background: var(--sx-navy) center / cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.75rem 2.5rem 2.5rem;
}

.sx-login-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(16, 24, 40, 0.94) 0%,
    rgba(16, 24, 40, 0.72) 45%,
    rgba(0, 153, 204, 0.14) 100%
  );
}

.sx-login-hero > * {
  position: relative;
  z-index: 1;
}

.sx-login-hero h1 {
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: clamp(1.65rem, 3.5vw, 2.35rem);
  line-height: 1.2;
  max-width: 28rem;
}

.sx-login-hero p {
  color: var(--sx-text-muted);
  font-size: 1.05rem;
  max-width: 26rem;
  line-height: 1.65;
}

.sx-login-panel {
  flex: 1 1 380px;
  max-width: 520px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 2rem;
}

.sx-login-card {
  width: 100%;
  max-width: 400px;
}

.sx-login-card--wide {
  max-width: 440px;
}

.sx-logo img {
  max-height: 48px;
  width: auto;
}

.btn-sx-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.85rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff !important;
  background: linear-gradient(135deg, var(--sx-accent) 0%, var(--sx-accent-deep) 100%);
  border: none;
  border-radius: 4px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-sx-primary:hover {
  color: #fff !important;
  background: linear-gradient(135deg, var(--sx-accent-hover) 0%, var(--sx-accent) 100%);
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(0, 174, 239, 0.35);
}

.btn-sx-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--sx-navy) !important;
  background: #fff;
  border: 2px solid #e8ecf2;
  border-radius: 4px;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.btn-sx-outline:hover {
  border-color: var(--sx-accent);
  color: var(--sx-accent-deep) !important;
}

.sx-login-panel .form-control {
  border-radius: 4px;
  border: 1px solid #e2e6ed;
  padding: 0.75rem 1rem;
}

.sx-login-panel .form-control:focus {
  border-color: var(--sx-accent);
  box-shadow: 0 0 0 0.2rem rgba(0, 174, 239, 0.22);
}

.login-method {
  flex: 1;
  padding: 0.85rem 0.5rem;
  border: 2px solid #e8ecf2;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  background: #fff;
}

.login-method.active {
  border-color: var(--sx-accent);
  background: rgba(0, 174, 239, 0.08);
}

.sx-auth-links a {
  color: var(--sx-accent-deep);
  font-weight: 500;
  text-decoration: none;
}

.sx-auth-links a:hover {
  text-decoration: underline;
  color: var(--sx-accent);
}

.back-link {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.back-link:hover {
  color: var(--sx-accent-hover);
}

/* Portal */
.sx-portal-page {
  min-height: 100vh;
  background: linear-gradient(
      105deg,
      rgba(16, 24, 40, 0.97) 0%,
      rgba(26, 35, 50, 0.94) 45%,
      rgba(0, 153, 204, 0.1) 100%
    ),
    var(--sx-navy) url("https://www.statusx.com/assets/img/slide-v3-3.jpg") center /
      cover no-repeat fixed;
  padding: 2rem 1rem 3rem;
}

.sx-portal-card {
  border: 1px solid #e8ecf2;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 48px rgba(16, 24, 40, 0.15);
  overflow: hidden;
}

.sx-portal-card .card-body {
  padding: 2.5rem 2rem;
}

.sx-portal-inner-card {
  border: 1px solid #e8ecf2;
  border-radius: 8px;
  height: 100%;
  transition: box-shadow 0.25s, transform 0.25s;
}

.sx-portal-inner-card:hover {
  box-shadow: 0 12px 32px rgba(16, 24, 40, 0.1);
  transform: translateY(-4px);
}

.sx-portal-title {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--sx-navy);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
}

.sx-portal-sub {
  color: var(--sx-silver);
  font-size: 1.05rem;
}

.sx-icon-circle {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.sx-icon-circle--accent {
  background: rgba(0, 174, 239, 0.12);
  color: var(--sx-accent-deep);
}

.sx-icon-circle--navy {
  background: rgba(16, 24, 40, 0.08);
  color: var(--sx-navy);
}

@media (max-width: 991.98px) {
  .sx-login-hero {
    min-height: 200px;
  }
}
