/* =========================================================
   BUSINESSMANAGER AUTHENTICATION EXPERIENCE
   ========================================================= */

:root {
    --auth-primary: #2563eb;
    --auth-primary-dark: #1d4ed8;
    --auth-secondary: #7c3aed;
    --auth-success: #16a34a;
    --auth-danger: #dc2626;
    --auth-heading: #0f172a;
    --auth-text: #334155;
    --auth-muted: #64748b;
    --auth-border: #dbe3ee;
    --auth-soft: #f8fafc;
    --auth-card: #ffffff;
    --auth-dark: #0f172a;
}

html {
    min-height: 100%;
}

.auth-body {
    min-height: 100vh;
    margin: 0;
    color: var(--auth-text);
    background: radial-gradient( circle at 12% 10%, rgba(37, 99, 235, 0.12), transparent 32%), radial-gradient( circle at 92% 80%, rgba(124, 58, 237, 0.11), transparent 34%), #f8fafc;
    font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.auth-shell {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

.auth-main {
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
}

/* =========================================================
   TOPBAR
   ========================================================= */

.auth-topbar {
    position: relative;
    z-index: 20;
    border-bottom: 1px solid rgba(219, 227, 238, 0.9);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(18px);
}

.auth-topbar-inner {
    display: flex;
    min-height: 74px;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-right: clamp(1rem, 4vw, 3rem);
    padding-left: clamp(1rem, 4vw, 3rem);
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--auth-heading);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    text-decoration: none;
}

    .auth-brand:hover,
    .auth-brand:focus {
        color: var(--auth-primary);
    }

.auth-brand-icon {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient( 135deg, var(--auth-primary), var(--auth-secondary));
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.24);
}

.auth-home-link {
    color: var(--auth-muted);
    font-size: 0.86rem;
    font-weight: 650;
    text-decoration: none;
}

    .auth-home-link:hover,
    .auth-home-link:focus {
        color: var(--auth-primary);
    }

/* =========================================================
   AUTH PAGE
   ========================================================= */

.auth-page {
    position: relative;
    flex: 1;
    padding: clamp(2rem, 5vw, 4.5rem) clamp(1rem, 4vw, 3rem);
}

.auth-page-inner {
    width: 100%;
    max-width: 1500px;
    margin-inline: auto;
}

.auth-login-grid {
    display: grid;
    min-height: 720px;
    grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
    overflow: hidden;
    border: 1px solid rgba(219, 227, 238, 0.95);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 32px 80px rgba(15, 23, 42, 0.12), 0 8px 24px rgba(37, 99, 235, 0.06);
}

.auth-register-grid {
    display: grid;
    grid-template-columns: minmax(330px, 0.72fr) minmax(0, 1.28fr);
    overflow: hidden;
    border: 1px solid rgba(219, 227, 238, 0.95);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 32px 80px rgba(15, 23, 42, 0.12), 0 8px 24px rgba(37, 99, 235, 0.06);
}

/* =========================================================
   MARKETING PANEL
   ========================================================= */

.auth-marketing-panel {
    position: relative;
    display: flex;
    min-height: 100%;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: clamp(2.2rem, 4.5vw, 4.5rem);
    color: #dbeafe;
    background: radial-gradient( circle at 10% 10%, rgba(96, 165, 250, 0.35), transparent 31%), radial-gradient( circle at 90% 90%, rgba(167, 139, 250, 0.32), transparent 35%), linear-gradient( 145deg, #0f172a, #172554 48%, #312e81);
}

    .auth-marketing-panel::before,
    .auth-marketing-panel::after {
        position: absolute;
        border: 1px solid rgba(255, 255, 255, 0.09);
        border-radius: 50%;
        content: "";
        pointer-events: none;
    }

    .auth-marketing-panel::before {
        top: -10rem;
        right: -9rem;
        width: 28rem;
        height: 28rem;
    }

    .auth-marketing-panel::after {
        bottom: -12rem;
        left: -9rem;
        width: 30rem;
        height: 30rem;
    }

.auth-marketing-content,
.auth-marketing-preview,
.auth-marketing-footer {
    position: relative;
    z-index: 2;
}

.auth-marketing-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.48rem;
    margin-bottom: 1.3rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid rgba(191, 219, 254, 0.25);
    border-radius: 999px;
    color: #dbeafe;
    background: rgba(37, 99, 235, 0.17);
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.auth-marketing-title {
    max-width: 42rem;
    margin: 0;
    color: #fff;
    font-size: clamp(2.2rem, 4vw, 4rem);
    font-weight: 830;
    line-height: 1.05;
    letter-spacing: -0.055em;
}

.auth-marketing-description {
    max-width: 39rem;
    margin: 1.25rem 0 0;
    color: #bfdbfe;
    font-size: 1rem;
    line-height: 1.75;
}

.auth-feature-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem 1.2rem;
    margin-top: 2rem;
}

.auth-feature-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #e2e8f0;
    font-size: 0.82rem;
    font-weight: 600;
}

    .auth-feature-item i {
        color: #86efac;
    }

/* =========================================================
   MARKETING DASHBOARD PREVIEW
   ========================================================= */

.auth-marketing-preview {
    margin: 2.5rem 0;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.09);
    box-shadow: 0 24px 45px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(18px);
}

.auth-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.9rem;
}

.auth-preview-title {
    color: #fff;
    font-size: 0.79rem;
    font-weight: 700;
}

.auth-preview-pill {
    padding: 0.28rem 0.5rem;
    border-radius: 999px;
    color: #bbf7d0;
    background: rgba(22, 163, 74, 0.22);
    font-size: 0.6rem;
    font-weight: 700;
}

.auth-preview-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
}

.auth-preview-metric {
    min-width: 0;
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.08);
}

    .auth-preview-metric span,
    .auth-preview-metric small {
        display: block;
        overflow: hidden;
        color: #93c5fd;
        font-size: 0.56rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .auth-preview-metric strong {
        display: block;
        margin: 0.25rem 0;
        color: #fff;
        font-size: 1.05rem;
    }

.auth-preview-chart {
    display: flex;
    height: 118px;
    align-items: flex-end;
    gap: 0.45rem;
    margin-top: 0.8rem;
    padding: 1rem 0.8rem 0.6rem;
    border-radius: 11px;
    background: rgba(15, 23, 42, 0.32);
}

    .auth-preview-chart span {
        flex: 1;
        border-radius: 5px 5px 2px 2px;
        background: linear-gradient( 180deg, #60a5fa, #2563eb);
    }

.auth-marketing-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.3rem;
    color: #94a3b8;
    font-size: 0.72rem;
}

    .auth-marketing-footer span {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
    }

/* =========================================================
   FORM PANEL
   ========================================================= */

.auth-form-panel {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2rem, 5vw, 5rem);
    background: linear-gradient( 180deg, #ffffff, #fbfdff);
}

.auth-register-form-panel {
    padding: clamp(1.8rem, 3vw, 3rem) clamp(1.4rem, 4vw, 4rem);
}

.auth-form-header {
    margin-bottom: 2rem;
}

.auth-form-kicker {
    display: block;
    margin-bottom: 0.55rem;
    color: var(--auth-primary);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.auth-form-title {
    margin: 0;
    color: var(--auth-heading);
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 820;
    letter-spacing: -0.045em;
}

.auth-form-description {
    margin: 0.7rem 0 0;
    color: var(--auth-muted);
    font-size: 0.9rem;
    line-height: 1.65;
}

.auth-form {
    width: 100%;
}

.auth-selected-plan {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.4rem;
    padding: 1rem 1.1rem;
    border: 1px solid #c7d2fe;
    border-radius: 17px;
    background: linear-gradient(135deg, #eef2ff, #f8fafc);
    box-shadow: 0 7px 20px rgba(79, 70, 229, 0.06);
}

.auth-selected-plan-main {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.8rem;
}

.auth-selected-plan-icon {
    display: inline-flex;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #4338ca;
    background: #e0e7ff;
    font-size: 1.05rem;
}

.auth-selected-plan-eyebrow {
    display: block;
    margin-bottom: 0.18rem;
    color: #4f46e5;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-selected-plan-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.45rem;
}

.auth-selected-plan-title-row strong {
    color: var(--auth-heading);
    font-size: 1rem;
}

.auth-selected-plan-title-row span {
    color: var(--auth-muted);
    font-size: 0.75rem;
    font-weight: 700;
}

.auth-selected-plan-main p {
    margin: 0.2rem 0 0;
    color: var(--auth-muted);
    font-size: 0.72rem;
}

.auth-selected-plan-price {
    display: flex;
    align-items: baseline;
    white-space: nowrap;
}

.auth-selected-plan-price strong {
    color: var(--auth-heading);
    font-size: 1.35rem;
    letter-spacing: -0.035em;
}

.auth-selected-plan-price span,
.auth-selected-plan-price small {
    margin-left: 0.25rem;
    color: var(--auth-muted);
    font-size: 0.72rem;
}

.auth-selected-plan-change {
    color: var(--auth-primary);
    font-size: 0.72rem;
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
}

.auth-selected-plan-change:hover,
.auth-selected-plan-change:focus {
    color: var(--auth-primary-dark);
    text-decoration: underline;
}

.auth-form-section {
    margin-bottom: 1.4rem;
    padding: 1.35rem;
    border: 1px solid var(--auth-border);
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 7px 20px rgba(15, 23, 42, 0.035);
}

.auth-form-section-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.15rem;
}

.auth-form-section-icon {
    display: inline-flex;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: var(--auth-primary);
    background: #dbeafe;
    font-size: 1.08rem;
}

.auth-form-section-title {
    margin: 0;
    color: var(--auth-heading);
    font-size: 0.92rem;
    font-weight: 750;
}

.auth-form-section-description {
    margin: 0.2rem 0 0;
    color: var(--auth-muted);
    font-size: 0.72rem;
}

/* =========================================================
   CONTROLS
   ========================================================= */

.auth-label {
    margin-bottom: 0.42rem;
    color: #334155;
    font-size: 0.78rem;
    font-weight: 700;
}

.auth-required {
    color: var(--auth-danger);
}

.auth-optional {
    color: var(--auth-muted);
    font-size: 0.68rem;
    font-weight: 500;
}

.auth-control,
.auth-select {
    min-height: 50px;
    border: 1px solid var(--auth-border);
    border-radius: 11px;
    background-color: #fff;
    box-shadow: none;
    font-size: 0.88rem;
}

    .auth-control:hover,
    .auth-select:hover {
        border-color: #b8c4d4;
    }

    .auth-control:focus,
    .auth-select:focus {
        border-color: #60a5fa;
        box-shadow: 0 0 0 0.22rem rgba(37, 99, 235, 0.11);
    }

    .auth-control::placeholder {
        color: #a0aec0;
    }

.auth-input-group {
    position: relative;
}

.auth-input-icon {
    position: absolute;
    top: 50%;
    left: 0.95rem;
    z-index: 4;
    color: #94a3b8;
    transform: translateY(-50%);
    pointer-events: none;
}

.auth-input-group .auth-control {
    padding-left: 2.75rem;
}

.auth-password-group .auth-control {
    padding-right: 3.5rem;
}

.auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 0.5rem;
    z-index: 5;
    display: inline-flex;
    width: 2.5rem;
    height: 2.5rem;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #64748b;
    background: transparent;
    transform: translateY(-50%);
}

    .auth-password-toggle:hover,
    .auth-password-toggle:focus {
        color: var(--auth-primary);
        background: #eff6ff;
        outline: none;
    }

    .auth-password-toggle:focus-visible {
        outline: 2px solid var(--auth-primary);
        outline-offset: 2px;
    }

.auth-help-text {
    margin-top: 0.38rem;
    color: var(--auth-muted);
    font-size: 0.7rem;
}

.field-validation-error {
    display: block;
    margin-top: 0.35rem;
    color: var(--auth-danger);
    font-size: 0.74rem;
    font-weight: 600;
}

.input-validation-error {
    border-color: var(--auth-danger) !important;
    background-image: none !important;
}

    .input-validation-error:focus {
        box-shadow: 0 0 0 0.22rem rgba(220, 38, 38, 0.1) !important;
    }

.validation-summary-valid {
    display: none;
}

.auth-validation-summary {
    margin-bottom: 1.25rem;
    border: 1px solid #fecaca;
    border-radius: 12px;
    color: #991b1b;
    background: #fef2f2;
    font-size: 0.8rem;
}

    .auth-validation-summary ul {
        margin-bottom: 0;
    }

/* =========================================================
   PASSWORD REQUIREMENTS
   ========================================================= */

.auth-password-strength {
    margin-top: 0.85rem;
}

.auth-strength-track {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.35rem;
}

.auth-strength-segment {
    height: 0.38rem;
    border-radius: 999px;
    background: #e2e8f0;
    transition: background-color 0.18s ease;
}

.auth-strength-label {
    margin-top: 0.4rem;
    color: var(--auth-muted);
    font-size: 0.7rem;
}

.auth-password-requirements {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem 1rem;
    margin-top: 0.85rem;
    padding: 0.85rem;
    border-radius: 11px;
    background: #f8fafc;
}

.auth-password-requirement {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--auth-muted);
    font-size: 0.7rem;
}

    .auth-password-requirement.is-valid {
        color: var(--auth-success);
    }

.auth-password-match {
    display: flex;
    min-height: 1.4rem;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.5rem;
    font-size: 0.72rem;
}

/* =========================================================
   ACTIONS
   ========================================================= */

.auth-primary-button {
    min-height: 52px;
    border: 0;
    border-radius: 11px;
    background: linear-gradient( 135deg, var(--auth-primary), var(--auth-primary-dark));
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22);
    font-weight: 700;
}

    .auth-primary-button:hover,
    .auth-primary-button:focus {
        background: linear-gradient( 135deg, var(--auth-primary-dark), #1e40af);
        box-shadow: 0 15px 30px rgba(37, 99, 235, 0.27);
    }

.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 1.5rem 0;
    color: var(--auth-muted);
    font-size: 0.72rem;
}

    .auth-divider::before,
    .auth-divider::after {
        flex: 1;
        height: 1px;
        background: var(--auth-border);
        content: "";
    }

.auth-alternate-action {
    padding: 1rem;
    border: 1px solid var(--auth-border);
    border-radius: 12px;
    background: #f8fafc;
    text-align: center;
}

    .auth-alternate-action p {
        margin: 0 0 0.6rem;
        color: var(--auth-muted);
        font-size: 0.78rem;
    }

.auth-text-link {
    color: var(--auth-primary);
    font-weight: 700;
    text-decoration: none;
}

    .auth-text-link:hover,
    .auth-text-link:focus {
        color: var(--auth-primary-dark);
        text-decoration: underline;
    }

.auth-remember-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

    .auth-remember-row .form-check-label {
        color: #475569;
        font-size: 0.78rem;
        font-weight: 600;
    }

.auth-login-security {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin-top: 1.2rem;
    padding: 0.85rem;
    border: 1px solid #dbeafe;
    border-radius: 11px;
    color: #1e40af;
    background: #eff6ff;
    font-size: 0.7rem;
    line-height: 1.55;
}

/* =========================================================
   FOOTER
   ========================================================= */

.auth-footer {
    border-top: 1px solid rgba(219, 227, 238, 0.9);
    background: rgba(255, 255, 255, 0.88);
}

.auth-footer-inner {
    display: flex;
    min-height: 66px;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-right: clamp(1rem, 4vw, 3rem);
    padding-left: clamp(1rem, 4vw, 3rem);
    color: var(--auth-muted);
    font-size: 0.68rem;
}

.auth-footer-content {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.45rem 1.2rem;
}

.auth-footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.35rem 0.9rem;
}

.auth-footer-legal a {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    color: var(--auth-muted);
    font-weight: 650;
    text-decoration: none;
}

.auth-footer-legal a:hover {
    color: #2563eb;
}

.auth-footer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.2rem;
}

    .auth-footer-badges span {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
    }


/* Platform activation uses the registration shell, but its longer marketing
   heading needs a slightly tighter desktop scale so it stays fully inside
   the left pane without changing the standard Account/Register typography. */
.auth-platform-activation-title {
    max-width: 100%;
    font-size: clamp(2.15rem, 3.15vw, 3.35rem);
    overflow-wrap: normal;
    word-break: normal;
}

@media (max-width: 1199.98px) and (min-width: 992px) {
    .auth-platform-activation-title {
        font-size: clamp(2rem, 3.3vw, 2.8rem);
    }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1199.98px) {
    .auth-login-grid,
    .auth-register-grid {
        grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.15fr);
    }

    .auth-marketing-panel {
        padding: 2.5rem;
    }

    .auth-feature-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991.98px) {
    .auth-login-grid,
    .auth-register-grid {
        grid-template-columns: 1fr;
    }

    .auth-marketing-panel {
        min-height: auto;
    }

    .auth-login-grid .auth-marketing-panel {
        display: none;
    }

    .auth-register-grid .auth-marketing-panel {
        padding: 2.4rem;
    }

    .auth-register-grid
    .auth-marketing-preview {
        display: none;
    }

    .auth-register-grid
    .auth-feature-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .auth-form-panel {
        padding: 2.5rem;
    }
}

@media (max-width: 767.98px) {
    .auth-page {
        padding: 1rem;
    }

    .auth-login-grid,
    .auth-register-grid {
        border-radius: 20px;
    }

        .auth-register-grid
        .auth-marketing-panel {
            display: none;
        }

    .auth-form-panel,
    .auth-register-form-panel {
        padding: 1.4rem;
    }

    .auth-form-section {
        padding: 1rem;
    }

    .auth-selected-plan {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .auth-selected-plan-change {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .auth-password-requirements {
        grid-template-columns: 1fr;
    }

    .auth-footer-inner {
        align-items: flex-start;
        flex-direction: column;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .auth-footer-content,
    .auth-footer-legal {
        justify-content: flex-start;
    }
}

@media (max-width: 575.98px) {
    .auth-brand-name {
        display: none;
    }

    .auth-home-link {
        font-size: 0.74rem;
    }

    .auth-form-title {
        font-size: 2rem;
    }

    .auth-selected-plan {
        grid-template-columns: 1fr;
    }

    .auth-selected-plan-price,
    .auth-selected-plan-change {
        grid-column: auto;
    }

    .auth-remember-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .auth-footer-badges {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-strength-segment {
        transition: none;
    }
}

/* =========================================================
   ACCOUNT SECURITY PAGES
   ========================================================= */

.auth-security-grid {
    display: grid;
    min-height: 680px;
    grid-template-columns: minmax(330px, 0.78fr) minmax(0, 1.22fr);
    overflow: hidden;
    border: 1px solid rgba(219, 227, 238, 0.95);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 32px 80px rgba(15, 23, 42, 0.12), 0 8px 24px rgba(37, 99, 235, 0.06);
}

.auth-security-marketing-panel {
    min-height: 680px;
    padding: clamp(2.2rem, 4vw, 4rem);
}

.auth-security-marketing-title {
    max-width: 31rem;
    margin: 0;
    color: #fff;
    font-size: clamp(2rem, 3.7vw, 3.45rem);
    font-weight: 830;
    line-height: 1.08;
    letter-spacing: -0.052em;
}

.auth-security-feature-list {
    display: grid;
    gap: 1.15rem;
    margin-top: 2.2rem;
}

.auth-security-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.auth-security-feature-icon {
    display: inline-flex;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(191, 219, 254, 0.28);
    border-radius: 13px;
    color: #fff;
    background: rgba(37, 99, 235, 0.32);
    font-size: 1rem;
}

.auth-security-feature strong,
.auth-security-feature small {
    display: block;
}

.auth-security-feature strong {
    margin-bottom: 0.18rem;
    color: #fff;
    font-size: 0.86rem;
}

.auth-security-feature small {
    max-width: 26rem;
    color: #bfdbfe;
    font-size: 0.72rem;
    line-height: 1.55;
}

.auth-security-illustration {
    position: relative;
    z-index: 2;
    width: min(88%, 370px);
    min-height: 210px;
    margin: 2.5rem auto;
}

.auth-security-screen {
    position: absolute;
    right: 3rem;
    bottom: 1.2rem;
    left: 0;
    height: 170px;
    padding: 2rem 1.7rem;
    border: 7px solid rgba(147, 197, 253, 0.42);
    border-radius: 18px;
    background: rgba(239, 246, 255, 0.94);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.24);
    transform: perspective(700px) rotateY(8deg) rotateX(2deg);
}

.auth-security-screen-bar,
.auth-security-screen-line {
    display: block;
    border-radius: 999px;
}

.auth-security-screen-bar {
    width: 38%;
    height: 13px;
    margin-bottom: 1.6rem;
    background: #60a5fa;
}

.auth-security-screen-line {
    width: 68%;
    height: 10px;
    margin-top: 0.75rem;
    background: #bfdbfe;
}

.auth-security-screen-line-lg { width: 88%; }
.auth-security-screen-line-sm { width: 45%; }

.auth-security-shield {
    position: absolute;
    right: 0;
    bottom: 0;
    display: inline-flex;
    width: 104px;
    height: 120px;
    align-items: center;
    justify-content: center;
    border: 6px solid rgba(255, 255, 255, 0.33);
    border-radius: 48% 48% 55% 55% / 35% 35% 66% 66%;
    color: #fff;
    background: linear-gradient(145deg, #3b82f6, #1d4ed8);
    box-shadow: 0 22px 40px rgba(2, 6, 23, 0.35);
    font-size: 2.5rem;
}

.auth-security-form-panel {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    padding: clamp(2rem, 5vw, 5rem);
    background: linear-gradient(180deg, #ffffff, #fbfdff);
}

.auth-security-card {
    width: 100%;
    max-width: 690px;
}

.auth-security-card-compact { max-width: 600px; }

.auth-security-header {
    margin-bottom: 1.9rem;
    text-align: center;
}

.auth-security-icon {
    display: inline-flex;
    width: 72px;
    height: 72px;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    border-radius: 50%;
    color: var(--auth-primary);
    background: #eaf2ff;
    font-size: 1.8rem;
}

.auth-security-icon-success { color: #15803d; background: #eaf8ef; }
.auth-security-icon-danger { color: #dc2626; background: #fff0f1; }
.auth-security-icon-warning { color: #b45309; background: #fff7e6; }

.auth-security-title {
    margin: 0;
    color: var(--auth-heading);
    font-size: clamp(1.75rem, 3vw, 2.45rem);
    font-weight: 820;
    letter-spacing: -0.04em;
}

.auth-security-description {
    max-width: 36rem;
    margin: 0.75rem auto 0;
    color: var(--auth-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

.auth-security-box {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    margin-top: 1.2rem;
    padding: 1rem;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    color: #1e40af;
    background: #eff6ff;
    font-size: 0.76rem;
    line-height: 1.6;
}

.auth-security-box-success { border-color: #bbf7d0; color: #166534; background: #f0fdf4; }
.auth-security-box-danger { border-color: #fecaca; color: #991b1b; background: #fef2f2; }
.auth-security-box-warning { border-color: #fde68a; color: #92400e; background: #fffbeb; }

.auth-security-actions {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.auth-secondary-button {
    min-height: 50px;
    border-radius: 11px;
    font-weight: 700;
}

.auth-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--auth-primary);
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
}

.auth-back-link:hover,
.auth-back-link:focus {
    color: var(--auth-primary-dark);
    text-decoration: underline;
}

.auth-help-panel {
    margin-top: 1.4rem;
    padding: 1rem;
    border: 1px solid var(--auth-border);
    border-radius: 12px;
    background: #f8fafc;
}

.auth-help-panel-title {
    margin: 0 0 0.55rem;
    color: var(--auth-heading);
    font-size: 0.8rem;
    font-weight: 750;
}

.auth-help-list {
    margin: 0;
    padding-left: 1.2rem;
    color: var(--auth-muted);
    font-size: 0.73rem;
    line-height: 1.7;
}

.auth-inline-form {
    margin-top: 1.4rem;
    padding: 1.15rem;
    border: 1px solid var(--auth-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 7px 20px rgba(15, 23, 42, 0.035);
}

.auth-result-detail {
    color: var(--auth-muted);
    font-size: 0.76rem;
    line-height: 1.65;
}

.auth-submit-button[disabled] { cursor: wait; opacity: 0.82; }

@media (max-width: 991.98px) {
    .auth-security-grid { grid-template-columns: 1fr; min-height: auto; }
    .auth-security-marketing-panel { display: none; }
    .auth-security-form-panel { min-height: 620px; padding: 2.5rem; }
}

@media (max-width: 767.98px) {
    .auth-security-grid { border-radius: 20px; }
    .auth-security-form-panel { min-height: auto; padding: 1.4rem; }
    .auth-security-card { padding-block: 1rem; }
}

/* Phase 13B - branded portal authentication */
.auth-brand-logo {
    width: 2.45rem;
    height: 2.45rem;
    object-fit: contain;
    border-radius: .65rem;
    background: #fff;
    padding: .18rem;
    box-shadow: 0 .25rem .75rem rgba(15, 23, 42, .12);
}

.auth-body .auth-primary-button {
    background: var(--portal-primary, #2563eb);
    border-color: var(--portal-primary, #2563eb);
}

.auth-body .auth-form-kicker,
.auth-body .auth-forgot-link {
    color: var(--portal-primary, #2563eb);
}


/* =========================================================
   MVP.3I - SIGNUP ACCESSIBILITY / MOBILE POLISH
   ========================================================= */
.auth-skip-link {
    position: fixed;
    top: .75rem;
    left: .75rem;
    z-index: 2000;
    padding: .7rem 1rem;
    border-radius: .65rem;
    color: #fff;
    background: #0f172a;
    font-weight: 750;
    text-decoration: none;
    transform: translateY(-180%);
    transition: transform .16s ease;
}

.auth-skip-link:focus {
    color: #fff;
    transform: translateY(0);
}

.auth-body :where(a, button, input, select, textarea):focus-visible {
    outline: 3px solid #2563eb;
    outline-offset: 3px;
}

.auth-body .auth-control:focus-visible,
.auth-body .auth-select:focus-visible {
    outline-offset: 1px;
}

.auth-body .auth-primary-button,
.auth-body .auth-secondary-button,
.auth-body .auth-password-toggle,
.auth-body .auth-selected-plan-change,
.auth-body .auth-back-link {
    min-height: 44px;
}

.auth-body .auth-password-toggle,
.auth-body .auth-back-link,
.auth-body .auth-selected-plan-change {
    align-items: center;
}

.auth-validation-summary:focus {
    outline: 3px solid #dc2626;
    outline-offset: 3px;
}

@media (max-width: 575.98px) {
    .auth-page {
        padding-inline: .75rem;
    }

    .auth-form-panel,
    .auth-register-form-panel,
    .auth-security-form-panel {
        padding-inline: 1rem;
    }

    .auth-control,
    .auth-select,
    .auth-inline-form .form-control {
        min-height: 48px;
        font-size: 1rem;
    }

    .auth-selected-plan {
        gap: .75rem;
        padding: .95rem;
    }

    .auth-selected-plan-price {
        justify-self: start;
    }

    .auth-selected-plan-change {
        display: flex;
        width: 100%;
        min-height: 52px;
        align-items: center;
        justify-content: center;
        padding: .75rem 1rem;
        border: 1px solid #c7d2fe;
        border-radius: .75rem;
        background: rgba(255, 255, 255, .82);
        font-size: .9rem;
        font-weight: 800;
        line-height: 1.2;
        text-align: center;
    }

    .auth-security-actions .btn,
    .auth-inline-form .btn,
    .auth-alternate-action .btn {
        min-height: 48px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-skip-link,
    .auth-body *,
    .auth-body *::before,
    .auth-body *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        transition-delay: 0ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* =========================================================
   REGISTRATION LEGAL CONSENT — MVP.4E
   ========================================================= */

.auth-legal-consent-section {
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
}

.auth-legal-document-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.auth-legal-document-link {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.12rem 0.6rem;
    align-items: center;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--auth-border);
    border-radius: 11px;
    color: var(--auth-heading);
    background: #f8fafc;
    text-decoration: none;
}

.auth-legal-document-link:hover,
.auth-legal-document-link:focus-visible {
    border-color: #93c5fd;
    color: var(--auth-primary-dark);
    background: #eff6ff;
    outline: none;
}

.auth-legal-document-link span {
    min-width: 0;
    font-size: 0.76rem;
    font-weight: 750;
}

.auth-legal-document-link small {
    grid-column: 1;
    color: var(--auth-muted);
    font-size: 0.66rem;
}

.auth-legal-document-link i {
    grid-column: 2;
    grid-row: 1 / span 2;
    color: var(--auth-primary);
    font-size: 0.78rem;
}

.auth-consent-option {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.75rem;
    align-items: start;
    padding: 0.9rem;
    border: 1px solid var(--auth-border);
    border-radius: 12px;
    background: #fff;
}

.auth-consent-option + .auth-consent-option {
    margin-top: 0.75rem;
}

.auth-consent-option .form-check-input {
    width: 1.1rem;
    height: 1.1rem;
    margin: 0.12rem 0 0;
}

.auth-consent-label {
    margin: 0;
    color: #334155;
    font-size: 0.76rem;
    font-weight: 650;
    line-height: 1.55;
}

.auth-consent-label a {
    color: var(--auth-primary);
    font-weight: 750;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.auth-consent-help {
    margin-top: 0.35rem;
    color: var(--auth-muted);
    font-size: 0.68rem;
    line-height: 1.45;
}

.auth-legal-unavailable {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.95rem;
    border: 1px solid #fde68a;
    border-radius: 12px;
    color: #854d0e;
    background: #fffbeb;
}

.auth-legal-unavailable i {
    margin-top: 0.05rem;
    font-size: 1rem;
}

.auth-legal-unavailable strong,
.auth-legal-unavailable span {
    display: block;
}

.auth-legal-unavailable strong {
    margin-bottom: 0.18rem;
    font-size: 0.78rem;
}

.auth-legal-unavailable span {
    font-size: 0.7rem;
    line-height: 1.45;
}

@media (max-width: 767.98px) {
    .auth-legal-document-grid {
        grid-template-columns: 1fr;
    }
}

/* MVP.4G — registration subscription disclosure */
.auth-selected-plan-disclosure{grid-column:1 / -1;margin:0;padding-top:.8rem;border-top:1px solid rgba(79,70,229,.14);line-height:1.55}.auth-selected-plan-disclosure a{font-weight:750}
