/*
 * SomaPlus login skin — loaded ONLY for guests via the published Nova
 * layout (resources/views/vendor/nova/layout.blade.php), so nothing here
 * can leak into the authenticated panel. Type comes from somaplus-brand.css
 * (Outfit + DM Mono digits), loaded alongside.
 *
 * Light touch by design: Nova's auth markup is compiled into the SPA
 * bundle, so this restyles the existing structure — card, heading, gold
 * accent, fields, button — without touching markup. The one signature
 * element is the short gold rule under the heading: the only place the
 * brand gold appears besides the logo roundel.
 */

/* Page ground: a quiet vertical wash instead of flat gray. */
html:not(.dark) body {
    background: linear-gradient(180deg, #f3f7fb 0%, #e9eff6 100%);
    background-attachment: fixed;
}

/* Logo (inline SVG from config nova.brand.logo) */
.somaplus-logo {
    height: 40px;
    width: auto;
    display: inline-block;
}

html.dark .somaplus-logo-suffix {
    fill: #e8edf4;
}

/* The card */
form[class*="max-w-"] {
    border: 1px solid #e2e9f1;
    border-radius: 14px;
    padding: 2.5rem 2.25rem;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.05),
        0 20px 44px -24px rgba(15, 23, 42, 0.2);
}

html.dark form[class*="max-w-"] {
    border-color: rgba(255, 255, 255, 0.07);
    box-shadow: 0 20px 44px -24px rgba(0, 0, 0, 0.5);
}

/* Heading + the gold accent that replaces Nova's gray divider */
form[class*="max-w-"] h2 {
    font-size: 1.4375rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #19273c;
}

html.dark form[class*="max-w-"] h2 {
    color: #e8edf4;
}

form[class*="max-w-"] h2 + * {
    border: 0;
    width: 44px;
    height: 3px;
    border-radius: 99px;
    background: #efa537;
    margin: 0.9rem auto 0;
}

/* Field labels: quiet, small, deliberate */
form[class*="max-w-"] label {
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: #5d6c80;
}

html.dark form[class*="max-w-"] label {
    color: #9aa7b8;
}

/* Inputs */
form[class*="max-w-"] .form-input-bordered {
    border-radius: 8px;
    border-color: #d9e1ea;
    min-height: 2.75rem;
    font-size: 0.9375rem;
}

form[class*="max-w-"] .form-input-bordered:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.16);
    outline: none;
}

/* Primary button */
form[class*="max-w-"] button[type="submit"] {
    min-height: 2.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    letter-spacing: 0.01em;
    box-shadow: 0 10px 18px -10px rgba(14, 165, 233, 0.55);
}

form[class*="max-w-"] button[type="submit"]:hover {
    filter: brightness(0.95);
}

form[class*="max-w-"] button[type="submit"]:focus-visible {
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.35);
}

/* Forgot password / secondary links */
form[class*="max-w-"] a {
    font-size: 0.8125rem;
    font-weight: 500;
}
