/* SUMFACE PUBLIC PREMIUM V8 */

body.sf-public-home {
  background: #090f1d !important;
  color: #f8fafc;
}

/* Navigation */
body.sf-public-home .topnav {
  background: rgba(9,16,31,.96) !important;
  border-bottom: 1px solid #293e5c !important;
}

body.sf-public-home .topnav .brand,
body.sf-public-home .topnav .nav-links a {
  color: #f1f5f9 !important;
}

/* Hero */
body.sf-public-home .sfh-hero {
  background:
    radial-gradient(circle at 80% 20%,
      rgba(37,99,235,.2),transparent 50%),
    #090f1d !important;
}

body.sf-public-home .sfh-hero h1 {
  color: #fff !important;
  font-size: clamp(42px,5.2vw,78px) !important;
  line-height: 1.08;
  letter-spacing: -.05em;
}

body.sf-public-home .sfh-hero h1 em {
  color: #60a5fa !important;
}

body.sf-public-home .sfh-hero-copy > p {
  color: #c4d1e3 !important;
  font-size: 18px;
  line-height: 1.8;
}

body.sf-public-home .sfh-eyebrow,
body.sf-public-home .sfh-hero-foot {
  color: #a8c8f6 !important;
}

/* Buttons */
body.sf-public-home .sfh-button-primary {
  background: #2563eb !important;
  color: #fff !important;
  border: 1px solid #3b82f6 !important;
  box-shadow: 0 12px 30px rgba(37,99,235,.25);
}

body.sf-public-home .sfh-button-ghost {
  background: #172b48 !important;
  color: #f8fafc !important;
  border: 1px solid #496482 !important;
}

body.sf-public-home .sfh-button-ghost:hover {
  background: #24466f !important;
}

/* Dashboard preview */
body.sf-public-home .sfh-preview {
  background: #14233b !important;
  border: 1px solid #365070 !important;
  border-radius: 24px !important;
  box-shadow: 0 30px 70px rgba(0,0,0,.25);
}

body.sf-public-home .sfh-preview-main h2,
body.sf-public-home .sfh-device strong {
  color: #fff !important;
}

body.sf-public-home .sfh-preview-main > p,
body.sf-public-home .sfh-device small {
  color: #b6c6dc !important;
}

body.sf-public-home .sfh-preview-metrics > div {
  background: #1c3150 !important;
  border: 1px solid #304563 !important;
  border-radius: 14px;
}

body.sf-public-home .sfh-preview-metrics strong {
  color: #fff !important;
}

body.sf-public-home .sfh-preview-metrics small {
  color: #cbd5e1 !important;
}

/* Features and pricing */
body.sf-public-home .sfh-feature,
body.sf-public-home .sfh-plan {
  background: #14233b !important;
  border: 1px solid #304563 !important;
  border-radius: 20px !important;
}

body.sf-public-home .sfh-feature h3,
body.sf-public-home .sfh-plan h3 {
  color: #fff !important;
}

body.sf-public-home .sfh-feature p,
body.sf-public-home .sfh-plan p,
body.sf-public-home .sfh-intro p {
  color: #b8c7dc !important;
}

body.sf-public-home .sfh-plan-accent {
  border-color: #3b82f6 !important;
}

body.sf-public-home .sfh-plan a {
  background: #2563eb !important;
  color: #fff !important;
}

/* Mobile */
@media (max-width: 900px) {
  body.sf-public-home .sfh-hero-grid {
    grid-template-columns: minmax(0,1fr) !important;
    gap: 36px;
  }

  body.sf-public-home .sfh-preview {
    max-width: 700px;
    width: 100%;
    margin-inline: auto;
  }
}

@media (max-width: 600px) {
  body.sf-public-home .sfh-wrap {
    padding-inline: 18px !important;
  }

  body.sf-public-home .sfh-hero h1 {
    font-size: clamp(38px,10vw,52px) !important;
  }

  body.sf-public-home .sfh-hero-copy > p {
    font-size: 16px;
  }

  body.sf-public-home .sfh-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  body.sf-public-home .sfh-actions a {
    justify-content: center;
    text-align: center;
  }

  body.sf-public-home .sfh-feature-grid,
  body.sf-public-home .sfh-plan-grid {
    grid-template-columns: minmax(0,1fr) !important;
  }

  body.sf-public-home .sfh-feature-large {
    grid-column: auto !important;
  }

  body.sf-public-home .sfh-preview-main {
    padding: 18px !important;
  }
}

/* ===== SUMFACE AUTH DESIGN V9 ===== */

body:has(.auth-wrapper) {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 85% 15%,
            rgba(37,99,235,.22),transparent 42%),
        radial-gradient(circle at 10% 90%,
            rgba(14,165,233,.10),transparent 40%),
        #090f1d !important;
    color: #f1f5f9;
    color-scheme: dark;
}

.auth-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 32px 18px;
}

.auth-wrapper .auth-card {
    width: 100%;
    max-width: 460px;
    padding: clamp(26px, 5vw, 44px);
    background: #14233b !important;
    color: #f8fafc !important;
    border: 1px solid #304563 !important;
    border-radius: 24px;
    box-shadow: 0 30px 80px rgba(0,0,0,.32);
}

.auth-wrapper .auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 24px;
    background: linear-gradient(135deg,#2563eb,#38bdf8);
    color: #fff !important;
    font-size: 21px;
    font-weight: 800;
    border-radius: 17px;
}

.auth-wrapper .auth-card h1 {
    color: #fff !important;
    font-size: clamp(27px, 5vw, 34px);
    letter-spacing: -.04em;
    line-height: 1.2;
}

.auth-wrapper .subtitle {
    color: #aebfd5 !important;
    margin: 10px 0 28px;
}

.auth-wrapper .form-group {
    margin-bottom: 20px;
}

.auth-wrapper .form-group label {
    display: block;
    color: #e2e8f0 !important;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.auth-wrapper .form-group input {
    display: block;
    width: 100%;
    min-height: 50px;
    padding: 12px 15px;
    background: #0d1b30 !important;
    color: #fff !important;
    border: 1px solid #3a5272 !important;
    border-radius: 12px;
    font-size: 16px;
}

.auth-wrapper .form-group input:focus {
    outline: 2px solid #60a5fa;
    outline-offset: 1px;
    border-color: #60a5fa !important;
}

.auth-wrapper .submit-btn {
    display: block;
    width: 100%;
    min-height: 52px;
    margin-top: 10px;
    background: #2563eb !important;
    color: #fff !important;
    border: 1px solid #3b82f6 !important;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.auth-wrapper .submit-btn:hover {
    background: #1d4ed8 !important;
}

.auth-wrapper .auth-footer {
    margin-top: 26px;
    color: #aebfd5 !important;
    text-align: center;
    font-size: 14px;
}

.auth-wrapper .auth-footer a {
    color: #93c5fd !important;
    font-weight: 600;
}

.auth-wrapper .form-error {
    background: #451e2b !important;
    color: #fecaca !important;
    border: 1px solid #b91c1c;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 18px;
}

@media (max-width: 480px) {
    .auth-wrapper {
        align-items: center;
        padding: 18px 14px;
    }

    .auth-wrapper .auth-card {
        padding: 28px 22px;
        border-radius: 18px;
    }
}

/* ===== END AUTH DESIGN V9 ===== */
