:root {
    --cw-primary: #0878ff;
    --cw-primary-dark: #075ed1;
    --cw-primary-light: #3b9cff;
    --cw-text: #1e293b;
    --cw-text-muted: #64748b;
    --cw-border: #e2e8f0;
}

/* 2026 application-aligned registration details; the shell overrides follow the legacy rules below. */
.auth-brand-features { display: flex; gap: .75rem; margin-top: 2rem; }
.auth-brand-features span { display: grid; width: 2.8rem; height: 2.8rem; place-items: center; border: 1px solid rgba(255,255,255,.16); border-radius: .8rem; color: #58b5ff; background: rgba(255,255,255,.06); font-size: 1.25rem; }
.auth-card h2 { font-size: 1.85rem; color: #10203a; }
.auth-pricing-link { display: inline-flex; align-items: center; gap: .35rem; margin: .55rem 0; }
.plan-tile { border-radius: .85rem; }
.plan-radio:checked + .plan-tile { box-shadow: 0 0 0 3px rgba(8,120,255,.13); }

* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
    min-height: 100%;
    margin: 0 !important;
    background: linear-gradient(135deg, #0f766e 0%, #0d9488 50%, #14b8a6 100%);
    background-attachment: fixed;
}

body {
    min-height: 100vh;
    background: transparent;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem 0;
}

.auth-container {
    width: 100%;
    max-width: 780px;
    padding: 1rem;
    margin-block: auto;
}

.auth-brand {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-brand h1 {
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -1px;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.auth-brand p {
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.5rem;
    font-size: 0.9375rem;
}

.auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.auth-card .card-body {
    padding: 2.5rem;
}

.auth-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--cw-text);
    text-align: center;
    margin-bottom: 0.5rem;
}

.step-label {
    text-align: center;
    color: var(--cw-text-muted);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.form-label {
    font-weight: 500;
    color: var(--cw-text);
    font-size: 0.875rem;
}

.form-control {
    border: 2px solid var(--cw-border);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: var(--cw-primary);
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.15);
}

.form-control::placeholder {
    color: #94a3b8;
}

.btn-primary {
    background: linear-gradient(135deg, var(--cw-primary) 0%, var(--cw-primary-dark) 100%);
    border: none;
    border-radius: 10px;
    padding: 0.875rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 14px 0 rgba(13, 148, 136, 0.4);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(13, 148, 136, 0.5);
    background: linear-gradient(135deg, var(--cw-primary-light) 0%, var(--cw-primary) 100%);
}

.alert {
    border-radius: 10px;
    border: none;
    padding: 1rem;
    font-size: 0.875rem;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding: 0.75rem 0 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9375rem;
}

.auth-footer a {
    color: #fff;
    font-weight: 600;
    text-decoration: underline;
}

.auth-footer a:hover {
    text-decoration: none;
}

.input-hint {
    font-size: 0.75rem;
    color: var(--cw-text-muted);
    margin-top: 0.25rem;
}

/* ===== Plan Selector Tiles ===== */
.plan-fieldset {
    border: 0;
    margin: 0;
    min-width: 0;
    padding: 0;
}

.plan-fieldset .step-label {
    float: none;
    width: 100%;
}

.plan-selector {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.plan-tile {
    border: 2px solid var(--cw-border);
    border-radius: 12px;
    padding: 1rem 0.75rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
    position: relative;
}

.plan-tile:hover {
    border-color: var(--cw-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.plan-tile.selected,
.plan-radio:checked + .plan-tile {
    border-color: var(--cw-primary);
    background: #f0fdfa;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.2);
}

.plan-radio:focus-visible + .plan-tile {
    outline: 3px solid var(--cw-primary);
    outline-offset: 3px;
}

.plan-fieldset[aria-invalid="true"] .plan-selector {
    outline: 2px solid #ef4444;
    outline-offset: 4px;
}

.plan-selection-error:empty {
    display: none;
}

.plan-tile .plan-icon {
    display: block;
    font-size: 1.25rem;
    margin-bottom: 0.35rem;
}

.plan-tile .plan-name {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--cw-text);
    margin-bottom: 0.25rem;
}

.plan-tile .plan-price {
    display: block;
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--cw-text);
    line-height: 1.2;
}

.plan-tile .plan-price small {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--cw-text-muted);
}

.plan-tile .plan-note {
    display: block;
    font-size: 0.65rem;
    color: var(--cw-text-muted);
    margin-top: 0.25rem;
}

.plan-tile .check-mark {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--cw-primary);
    display: none;
    align-items: center;
    justify-content: center;
}

.plan-tile.selected .check-mark,
.plan-radio:checked + .plan-tile .check-mark {
    display: flex;
}

.plan-tile.best-value::before {
    content: '⭐';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.875rem;
}

.divider-line {
    border-top: 1px solid var(--cw-border);
    margin: 1.5rem 0;
}

@media (max-width: 640px) {
    .form-control,
    .form-select {
        font-size: 1rem;
    }

    .plan-selector {
        grid-template-columns: repeat(2, 1fr);
    }

    .plan-tile:last-child {
        grid-column: span 2;
    }

    .auth-container {
        max-width: 100%;
        padding-top: 3.5rem;
        margin-block: 0;
    }

    .auth-brand {
        margin-bottom: 1rem;
    }

    .auth-card .card-body {
        padding: 1.5rem;
    }
}

/* Keep the new shell authoritative over the legacy component rules above. */
html { background:#061526; }
body { align-items:center; padding:2rem; background:radial-gradient(circle at 15% 12%,rgba(8,120,255,.35),transparent 26rem),#061526; }
.auth-container { display:grid; grid-template-columns:minmax(18rem,.72fr) minmax(38rem,1.28fr); width:min(82rem,100%); max-width:none; padding:0; margin:auto; overflow:hidden; border:1px solid rgba(130,177,230,.28); border-radius:1.35rem; background:#fff; box-shadow:0 28px 80px rgba(0,0,0,.38); }
.auth-brand { display:flex; min-height:48rem; margin:0; padding:4rem 3rem; flex-direction:column; align-items:flex-start; justify-content:center; text-align:left; background:linear-gradient(150deg,#07182c,#0b2e58 68%,#0878ff); }
.auth-brand h1 { display:flex; align-items:center; gap:.7rem; margin:0; font-size:2rem; }
.auth-brand h1 i { color:#31a5ff; font-size:2.35rem; }
.auth-brand p { max-width:19rem; color:#b8cee7; font-size:1rem; line-height:1.65; }
.auth-card { display:flex; margin:0; border:0; border-radius:0; box-shadow:none; align-self:stretch; align-items:center; }
.auth-card .card-body { width:100%; padding:3rem clamp(2rem,5vw,4.5rem); }
.auth-footer { margin:1.5rem 0 0; padding:1.25rem 0 0; border-top:1px solid var(--cw-border); color:#63738d; }
.auth-footer a { color:#0878ff; }
@media (max-width:991.98px) { body{padding:1rem;align-items:flex-start}.auth-container{display:block;padding:0}.auth-brand{min-height:auto;margin:0;padding:2rem}.auth-brand-features{display:none}.auth-card .card-body{padding:2rem 1.35rem}.auth-footer{padding:1.25rem 0 0} }
