/* ============================================================
   Salama Auth – Official portal sign-in
   Design System Engine & Responsive Layout Utilities
   Palette matches the customer portal theme: #007BFF azure, the
   #0B1F3A navy of the portal chrome, and the #F5F8FC canvas, so
   signing in looks like the product behind it.
   ============================================================ */

@import url(./fonts.css);

:root {
    /* Color System */
    --sp-auth-primary: #1a73e8;
    /* portal actions: flat azure, as on the register portals */
    --sp-auth-primary-hover: #1765cc;
    --sp-auth-primary-active: #1257a8;
    --sp-auth-accent: #8fc0f5;
    /* lighter azure for marks on the blue panel */
    --sp-auth-navy: #14385e;
    --sp-auth-navy-deep: #1f5f96;
    --sp-auth-heading: #1f2937;
    --sp-auth-label: #374151;
    --sp-auth-muted: #6b7280;
    --sp-auth-link: #1557b0;
    /* 5:1 on white, for 14px links */
    --sp-auth-edge: #cfd8e3;
    --sp-rule: #e5e7eb;

    /* Neutral Scale */
    --sp-bg-surface: #ffffff;
    --sp-bg-canvas: #f5f7fa;
    --sp-gray-100: #f1f4f8;
    --sp-gray-200: #e4ebf3;
    --sp-gray-400: #94a1b2;
    --sp-gray-600: #42536a;
    --sp-gray-800: #14243a;

    /* Semantic States */
    --sp-state-success: #1f6b45;
    --sp-state-danger: #8f2a2f;
    --sp-state-info: #155b91;

    /* Typography System */
    --sp-font-sans: 'Roboto', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --sp-font-heading: 'Roboto', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --sp-font-form: 'Roboto', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    /* Spacing System (8px Baseline System) */
    --sp-space-xs: 0.25rem;
    /* 4px */
    --sp-space-sm: 0.5rem;
    /* 8px */
    --sp-space-md: 1rem;
    /* 16px */
    --sp-space-lg: 1.5rem;
    /* 24px */
    --sp-space-xl: 2rem;
    /* 32px */
    --sp-space-2xl: 2.5rem;
    /* 40px */
    --sp-space-3xl: 3.5rem;
    /* 56px */

    /* Border Radius — square, like printed government forms */
    --sp-radius-sm: 2px;
    --sp-radius-md: 3px;
    --sp-radius-lg: 4px;
    --sp-radius-full: 9999px;

    /* Micro-Interactions */
    --sp-ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
    --sp-transition-fast: 120ms var(--sp-ease-spring);
    --sp-transition-normal: 180ms var(--sp-ease-spring);

    /* Focus & Elevation Tokens */
    --sp-focus-ring: 0 0 0 3px rgba(0, 123, 255, 0.22);
    --sp-shadow-subtle: 0 1px 2px rgba(11, 31, 58, 0.08);

    /* Aliases kept for templates that reference the portal token names */
    --sp-primary: var(--sp-auth-primary);
    --sp-primary-dark: var(--sp-auth-primary-active);
    --sp-border: #c4d1e0;
    --sp-light: var(--sp-gray-100);
}

/* ---------- Global Reset & Box Sizing ---------- */
*,
::before,
::after {
    box-sizing: border-box;
    margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
    font-family: var(--sp-font-heading) !important;
    font-weight: 700 !important;
}

.btn {
    border-color: rgb(13, 71, 161);
    background: linear-gradient(rgb(5, 79, 163) 0%, rgb(3, 71, 147) 100%) rgb(33, 83, 159);
}

body {
    background: var(--sp-bg-canvas) !important;
    color: var(--sp-gray-800);
    font-weight: 400;
    line-height: 1.6;
    font-size: 1rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: var(--sp-font-sans);
}

/* ============================================================
   Auth pages — split screen
   A white form panel on the left, a brand panel on the right, the way
   the hostgator.com account login is laid out: one narrow column of
   fields floating in white space, with the promo panel dropping away
   below 1024px so phones get the form and nothing else.
   ============================================================ */

body>main.container-fluid.min-vh-100 {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 0 !important;
    background: var(--sp-bg-canvas);
}

body>main.container-fluid.min-vh-100>.row {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
}

/* ---------- Left: the form panel ---------- */
.sp-auth-sheet {
    display: flex;
    flex: 1 1 50%;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    min-height: 100vh;
    min-height: 100dvh;
    padding: clamp(24px, 5vh, 56px) clamp(20px, 4vw, 40px);
    background: var(--sp-bg-canvas);
}

/* The column of fields — a white card floating on the canvas, with the
   wordmark set as its own header band. */
.sp-auth-sheet__inner {
    width: 100%;
    max-width: 460px;
    margin: auto 0;
    padding: 0 0 clamp(24px, 3.4vw, 34px);
    border: 1px solid #e3e6eb;
    border-radius: 8px;
    background: var(--sp-bg-surface);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

/* The registration form pairs its fields up, so it gets a little more room. */
/* The logo sits in a band at the head of the card. */
.sp-auth-brand {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: 0 0 clamp(22px, 3vw, 30px);
    padding: 18px clamp(24px, 3.6vw, 36px);
    border-bottom: 1px solid #eef0f3;
    background: #fbfcfd;
}

.sp-auth-brand img {
    display: block;
    width: auto;
    height: 34px;
}

/* Fields start inside the card's padding, not the header band's. */
.sp-auth-form {
    padding: 0 clamp(24px, 3.6vw, 36px);
}

/* ---------- Right: the brand panel ---------- */
.sp-auth-promo {
    position: sticky;
    top: 0;
    align-self: flex-start;
    display: flex;
    flex: 1 1 50%;
    flex-direction: column;
    justify-content: center;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    padding: clamp(32px, 5vw, 72px);
    background: linear-gradient(160deg, #1f5f96 0%, #17497a 55%, #123a5e 100%);
    color: #ffffff;
    isolation: isolate;
}

/* A faint diagonal weave keeps the flat panel from looking like a colour
   swatch, the way register-portal panels carry a discreet pattern. */
.sp-auth-promo::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.045) 0 2px, transparent 2px 14px);
    opacity: 0.9;
}

.sp-auth-promo__content {
    width: 100%;
    max-width: 430px;
    margin: 0;
    text-align: left;
}

.sp-auth-promo__eyebrow {
    display: inline-block;
    margin-bottom: 1.1rem;
    padding: 0.3rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: var(--sp-radius-full);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.sp-auth-promo__title {
    margin: 0 0 0.9rem;
    color: #ffffff !important;
    font-family: var(--sp-font-heading) !important;
    font-size: clamp(1.5rem, 2.1vw, 2rem) !important;
    font-weight: 700 !important;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.sp-auth-promo__text {
    margin: 0 0 1.85rem;
    color: #dbe8f5;
    font-size: 0.9375rem;
    line-height: 1.7;
}

.sp-auth-promo__points {
    display: grid;
    gap: 0.8rem;
    margin: 0 0 2rem;
    padding: 0;
    list-style: none;
    text-align: left;
}

.sp-auth-promo__points li {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    color: #eef5fc;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.sp-auth-promo__points i {
    display: inline-flex;
    flex: 0 0 20px;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 0.56rem;
}

.sp-auth-promo__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 1.35rem;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 4px;
    background: transparent;
    color: #ffffff !important;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color var(--sp-transition-fast);
}

.sp-auth-promo__cta:hover,
.sp-auth-promo__cta:focus {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff !important;
    text-decoration: none;
}

/* The legal footer sits on the bottom edge of the form panel. */
.sp-auth-sheet>*:last-child:not(.sp-auth-sheet__inner) {
    width: 100%;
    max-width: 460px;
    margin: 2rem auto 0;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    color: var(--sp-auth-muted);
    font-size: 0.75rem;
    line-height: 1.8;
    letter-spacing: 0;
    text-align: center;
}

.sp-auth-sheet>*:last-child:not(.sp-auth-sheet__inner) p,
.sp-auth-sheet>*:last-child:not(.sp-auth-sheet__inner) .text-muted,
.sp-auth-sheet>*:last-child:not(.sp-auth-sheet__inner) .small {
    color: inherit !important;
    font-size: inherit;
}

.sp-auth-sheet>*:last-child:not(.sp-auth-sheet__inner) a {
    color: var(--sp-auth-heading);
    text-decoration: none;
}

.sp-auth-sheet>*:last-child:not(.sp-auth-sheet__inner) a:hover,
.sp-auth-sheet>*:last-child:not(.sp-auth-sheet__inner) a:focus {
    color: var(--sp-auth-heading);
    text-decoration: underline;
}

.sp-auth-sheet>*:last-child:not(.sp-auth-sheet__inner) p {
    margin-bottom: 0;
    color: inherit;
    font-size: inherit;
}

.sp-auth-legal p+p {
    margin-top: 0.25rem;
}

.sp-auth-form {
    padding: 0 clamp(24px, 3.6vw, 36px);
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
}

.sp-auth-sheet h3,
.sp-auth-sheet h4 {
    margin-bottom: 0.4rem !important;
    color: var(--sp-auth-heading) !important;
    font-family: var(--sp-font-heading) !important;
    font-size: clamp(1.2rem, 1.5vw, 1.375rem) !important;
    font-weight: 700 !important;
    line-height: 1.3;
    letter-spacing: -0.01em;
    text-align: center;
}

/* Form pages read left to right from the heading; outcome pages (which carry
   .text-center on the card) keep their centred lockup. */
.sp-auth-sheet__inner:not(.text-center) .sp-auth-form > h3,
.sp-auth-sheet__inner:not(.text-center) .sp-auth-form > h4 {
    text-align: left;
}

.sp-auth-sheet h3.text-success {
    color: var(--sp-state-success) !important;
}

.sp-auth-sheet h3.text-danger {
    color: var(--sp-state-danger) !important;
}

.sp-auth-sheet .sp-auth-form>p {
    margin-bottom: 1.6rem;
    color: var(--sp-auth-muted) !important;
    font-size: 0.875rem;
    line-height: 1.6;
    text-align: center;
}

.sp-auth-sheet__inner:not(.text-center) .sp-auth-form > p {
    text-align: left;
}

/* ---------- Fields ---------- */
.sp-auth-sheet .form-group {
    margin-bottom: 1.25rem;
}

.sp-auth-sheet label {
    display: block;
    margin-bottom: 0.5rem !important;
    color: var(--sp-auth-label);
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    letter-spacing: 0;
}

.sp-auth-sheet .input-group-prepend {
    display: none;
}

.sp-auth-sheet .form-control {
    min-height: 44px;
    padding: 0 0.75rem;
    border: 1px solid var(--sp-auth-edge);
    border-radius: 4px;
    background: var(--sp-bg-surface);
    color: var(--sp-auth-label);
    font-family: var(--sp-font-form);
    font-size: 0.875rem;
    box-shadow: none;
}

.sp-auth-sheet .form-control::placeholder {
    color: var(--sp-gray-400);
}

.sp-auth-sheet .form-control:focus {
    border-color: var(--sp-auth-primary);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}

/* The reveal-password button sits inside the field, like the eye icon in
   the hostgator.com login: no divider, no second border. */
.sp-auth-sheet .input-group:has(.input-group-append) .form-control {
    padding-right: 3rem;
    border-radius: 4px;
}

.sp-auth-sheet .input-group-append {
    position: absolute;
    top: 1px;
    right: 1px;
    bottom: 1px;
    z-index: 3;
    display: flex;
    align-items: center;
    margin: 0;
}

.sp-auth-sheet .input-group-append .btn {
    width: 42px;
    height: 100%;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0 4px 4px 0;
    background: transparent;
    color: var(--sp-gray-400);
    font-size: 0.9375rem;
    box-shadow: none;
}

.sp-auth-sheet .input-group-append .btn:hover,
.sp-auth-sheet .input-group-append .btn:focus {
    background: transparent;
    color: var(--sp-auth-heading);
}

/* Remember me on the left, the recovery links on the right. */
.sp-auth-field-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    margin: -0.25rem 0 1.5rem;
    font-size: 0.875rem;
}

.sp-auth-field-row__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1rem;
    margin-left: auto;
}

.sp-auth-sheet .custom-control-label {
    color: var(--sp-auth-label);
    font-size: 0.875rem;
    font-weight: 400 !important;
}

/* "Don't have an account?" row under the form. */
.sp-auth-alt {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    margin-top: 1.5rem;
    color: var(--sp-auth-heading);
    font-size: 0.875rem;
    text-align: center;
}

.sp-auth-alt>i {
    color: var(--sp-auth-label);
    font-size: 0.9375rem;
}

.sp-auth-alt--sub {
    margin-top: 0.5rem;
    color: var(--sp-auth-label);
    font-size: 0.8125rem;
}

/* ---------- Actions ---------- */
.sp-auth-sheet .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    /* The theme paints buttons with a gradient; these pages use flat fills. */
    background-image: none;
}

/* Icons sit on the label's centre line and the gap owns the space between
   them, so mr-1 / mr-2 in the templates cannot space one button differently
   from another. */
.sp-auth-sheet .btn>i {
    margin-right: 0 !important;
    font-size: 1em;
    line-height: 1;
    vertical-align: middle;
}

.sp-auth-sheet .btn-block {
    display: flex;
    width: 100%;
    min-width: 0;
    min-height: 48px;
    justify-content: center;
    font-size: 1.0625rem;
}

.sp-auth-sheet .btn-primary {
    border-color: var(--sp-auth-primary);
    background-color: var(--sp-auth-primary);
    color: #ffffff;
}

.sp-auth-sheet .btn-primary:hover,
.sp-auth-sheet .btn-primary:focus,
.sp-auth-sheet .btn-primary:active {
    border-color: var(--sp-auth-primary-hover);
    background-color: var(--sp-auth-primary-hover);
    color: #ffffff;
}

/* The outcome screens use a green "try again" action. */
.sp-auth-sheet .btn-success {
    border-color: #1f7a4d;
    background-color: #1f7a4d;
    color: #ffffff;
}

.sp-auth-sheet .btn-success:hover,
.sp-auth-sheet .btn-success:focus {
    border-color: #196340;
    background-color: #196340;
    color: #ffffff;
}

/* The quiet grey of a button that has nothing to submit yet, as on the
   hostgator.com login before credentials are typed. */
.sp-auth-sheet .btn:disabled,
.sp-auth-sheet .btn.disabled,
.sp-auth-sheet .btn-primary:disabled,
.sp-auth-sheet .btn-primary.disabled {
    border-color: var(--sp-gray-200);
    background-color: var(--sp-gray-200);
    color: var(--sp-gray-400);
    opacity: 1;
    cursor: not-allowed;
    box-shadow: none;
}

.sp-auth-sheet .btn-outline-secondary.btn-sm,
.sp-auth-sheet .btn-outline-primary,
.sp-auth-sheet .btn-outline-danger {
    min-height: 44px;
    padding: 0 1.25rem;
    border-color: var(--sp-auth-edge);
    background: none;
    color: var(--sp-auth-heading);
}

.sp-auth-sheet .btn-outline-secondary.btn-sm:hover,
.sp-auth-sheet .btn-outline-primary:hover,
.sp-auth-sheet .btn-outline-danger:hover {
    border-color: var(--sp-auth-primary);
    color: var(--sp-auth-primary);
    background: none;
}

/* The security line is small print, not a callout box. */
.sp-auth-sheet .sp-auth-notice {
    display: flex;
    gap: 10px;
    margin-top: 1.75rem;
    padding: 0.875rem 0 0;
    border: 0;
    border-top: 1px solid var(--sp-rule);
    background: none;
    color: var(--sp-auth-muted);
    font-size: 0.75rem;
    line-height: 1.6;
    text-align: left;
}

.sp-auth-sheet .sp-auth-notice i {
    margin-top: 3px;
    color: var(--sp-gray-400);
}

/* Framework alerts carry dark text on a tinted ground; keep their own colour
   for links so a blue link never lands on a teal panel. */
.sp-auth-sheet .alert {
    padding: 0.875rem 1rem;
    border: 0;
    border-radius: 6px;
    font-size: 0.8125rem;
    line-height: 1.6;
    text-align: left;
}

.sp-auth-sheet .alert-info,
.sp-auth-sheet .alert-primary {
    background: #e8f3fc;
    color: var(--sp-state-info);
}

.sp-auth-sheet .alert-success {
    background: #e8f2ec;
    color: var(--sp-state-success);
}

.sp-auth-sheet .alert-warning {
    background: #fbf3e3;
    color: #8a5a12;
}

.sp-auth-sheet .alert-danger {
    background: #f7e9ea;
    color: var(--sp-state-danger);
}

.sp-auth-sheet .alert a,
.sp-auth-sheet .alert a.text-primary,
.sp-auth-sheet .alert a.text-danger {
    color: inherit !important;
    text-decoration: underline;
}

/* Inline links — forgot password, register, contact login — read as links,
   not as buttons. */
.sp-auth-sheet a:not(.btn):not(.sp-auth-brand):not(.sp-auth-promo__cta),
.sp-auth-sheet a.text-primary,
.sp-auth-sheet a.text-danger {
    color: var(--sp-auth-link) !important;
    font-weight: 500;
    text-decoration: none;
}

.sp-auth-sheet a:not(.btn):not(.sp-auth-brand):not(.sp-auth-promo__cta):hover,
.sp-auth-sheet a:not(.btn):not(.sp-auth-brand):not(.sp-auth-promo__cta):focus,
.sp-auth-sheet a.text-primary:hover,
.sp-auth-sheet a.text-danger:hover {
    color: var(--sp-auth-primary-hover) !important;
    text-decoration: underline;
}

/* Secondary rows stay centred, the way the account row under the
   hostgator.com login is centred. */
.sp-auth-sheet__inner .text-center,
.sp-auth-sheet__inner .justify-content-center {
    text-align: center;
}

/* ---------- Small screens: the promo panel goes, the form fills ---------- */
@media (max-width: 1023.98px) {
    .sp-auth-promo {
        display: none;
    }

    .sp-auth-sheet {
        flex-basis: 100%;
        padding: 32px 20px;
    }
}

@media (max-width: 575.98px) {
    .sp-auth-brand img {
        height: 32px;
    }

    .sp-auth-sheet__inner {
        max-width: none;
    }
}

/* Large result icon used on confirmation/outcome screens (verify email, locked
   account, expired token...). Modifier classes: .info .success .danger .warning */
.sp-auth-result-icon {
    width: 80px;
    height: 80px;
    border-radius: var(--sp-radius-lg);
    border: 2px solid currentColor;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.sp-auth-result-icon.info {
    background: color-mix(in oklch, var(--sp-state-info) 15%, white);
    color: var(--sp-state-info);
}

.sp-auth-result-icon.success {
    background: color-mix(in oklch, var(--sp-state-success) 15%, white);
    color: var(--sp-state-success);
}

.sp-auth-result-icon.danger {
    background: color-mix(in oklch, var(--sp-state-danger) 15%, white);
    color: var(--sp-state-danger);
}

.sp-auth-result-icon.warning {
    background: color-mix(in oklch, #8a5a12 15%, white);
    color: #8a5a12;
}

/* Divider between a form and its secondary actions ("Already have an account?") */
.sp-auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--sp-auth-label);
    font-size: 0.8125rem;
    margin: 1.75rem 0;
}

.sp-auth-divider::before,
.sp-auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--sp-gray-200);
}

.sp-auth-divider span {
    padding: 0 var(--sp-space-md);
}

/* Secondary link row under an auth form ("Register", "Reset Password"...) */
.sp-auth-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--sp-space-sm) var(--sp-space-lg);
    margin-top: 1.5rem;
    font-size: 0.875rem;
}

/* OTP Container */
.sp-otp-inputs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 25px 0;
}

/* OTP Boxes */
.sp-otp-inputs input {
    width: 52px;
    height: 58px;
    padding: 0;
    border: 1px solid var(--sp-auth-edge);
    border-radius: 4px !important;
    background: #fff;
    color: var(--sp-auth-label);
    font-family: var(--sp-font-form);
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    outline: none;
    transition: all 0.2s ease;
}

/* Focus */
.sp-otp-inputs input:focus {
    border-color: var(--sp-auth-primary);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}

/* The field wrapper draws no chrome of its own; the inputs inside it do. */
.sp-auth-sheet .input-group {
    position: relative;
    border: 0;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Mobile */
@media (max-width: 480px) {
    .sp-otp-inputs {
        gap: 7px;
    }

    .sp-otp-inputs input {
        width: 44px;
        height: 50px;
        font-size: 21px;
    }
}
