/* ==========================================================================
   Auth Shell — Premium design system (Linear / Stripe inspired)
   Scoped under .auth-shell
   ========================================================================== */

.auth-shell {
    --auth-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --auth-surface: #ffffff;
    --auth-surface-muted: #fafafa;
    --auth-surface-subtle: #f4f4f5;
    --auth-border: #e4e4e7;
    --auth-border-strong: #d4d4d8;
    --auth-text: #18181b;
    --auth-text-secondary: #52525b;
    --auth-text-tertiary: #71717a;
    --auth-accent: var(--primary, #FF88C8);
    --auth-accent-muted: color-mix(in srgb, var(--primary, #FF88C8) 18%, white);
    --auth-accent-soft: color-mix(in srgb, var(--primary, #FF88C8) 10%, white);
    --auth-success: #059669;
    --auth-success-bg: #ecfdf5;
    --auth-radius-sm: 6px;
    --auth-radius: 10px;
    --auth-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --auth-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
    --auth-card-max: 420px;
    --auth-card-wide-max: 480px;

    font-family: var(--auth-font);
    -webkit-font-smoothing: antialiased;
}

.auth-shell.auth-shell--page {
    background: var(--auth-surface-muted);
    min-height: 100vh;
}

.auth-shell .container-auth {
    padding: 32px 24px;
    max-width: 1120px;
}

@media screen and (max-width: 768px) {
    .auth-shell .container-auth {
        padding: 24px 16px;
    }
}

/* Logo */
.auth-shell .auth-logo {
    display: inline-block;
    margin-bottom: 24px;
}

.auth-shell .auth-logo img {
    width: 120px;
    height: auto;
}

.auth-shell .auth-logo--center {
    display: block;
    text-align: center;
    margin-bottom: 32px;
}

/* Card */
.auth-shell .auth-card {
    background: var(--auth-surface);
    border: 1px solid var(--auth-border);
    border-radius: var(--auth-radius);
    box-shadow: var(--auth-shadow-sm);
    padding: 32px;
    max-width: var(--auth-card-max);
    width: 100%;
}

.auth-shell .auth-card--wide {
    max-width: var(--auth-card-wide-max);
}

.auth-shell .auth-card--centered {
    margin-left: auto;
    margin-right: auto;
}

/* Typography */
.auth-shell .auth-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--auth-text);
    line-height: 1.3;
    margin: 0 0 8px;
}

.auth-shell .auth-title--center {
    text-align: center;
}

.auth-shell .auth-subtitle {
    font-size: 14px;
    color: var(--auth-text-secondary);
    line-height: 1.5;
    margin: 0 0 28px;
}

.auth-shell .auth-subtitle--center {
    text-align: center;
}

.auth-shell .auth-subtitle:last-child {
    margin-bottom: 28px;
}

/* Fields */
.auth-shell .auth-field {
    margin-bottom: 20px;
}

.auth-shell .auth-field:last-of-type {
    margin-bottom: 0;
}

.auth-shell .auth-field__label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.auth-shell .auth-field__label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--auth-text);
    margin: 0;
}

.auth-shell .auth-field__link {
    font-size: 12px;
    font-weight: 500;
    color: var(--auth-text-tertiary);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s ease;
}

.auth-shell .auth-field__link:hover {
    color: var(--auth-accent);
    text-decoration: none;
}

.auth-shell .auth-field .form-control {
    border: 1px solid var(--auth-border);
    border-radius: var(--auth-radius-sm);
    padding: 10px 12px;
    font-size: 14px;
    color: var(--auth-text);
    background: var(--auth-surface);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    height: auto;
}

.auth-shell .auth-field .form-control::placeholder {
    color: var(--auth-text-tertiary);
}

.auth-shell .auth-field .form-control:focus {
    border-color: var(--auth-accent-muted);
    box-shadow: 0 0 0 3px var(--auth-accent-soft);
    background: var(--auth-surface);
}

.auth-shell .auth-field .form-control:-webkit-autofill,
.auth-shell .auth-field .form-control:-webkit-autofill:hover,
.auth-shell .auth-field .form-control:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px var(--auth-surface) inset;
    -webkit-text-fill-color: var(--auth-text);
    transition: background-color 5000s ease-in-out 0s;
}

.auth-shell .auth-field .form-control.is-invalid {
    border-color: #dc2626;
}

.auth-shell .auth-field .form-control.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.auth-shell .auth-helper {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.4;
    color: var(--auth-text-tertiary);
}

.auth-shell .auth-help-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    padding: 0;
    border: 1px solid var(--auth-border);
    border-radius: 999px;
    background: var(--auth-surface-subtle);
    color: var(--auth-text-tertiary);
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    cursor: help;
    vertical-align: middle;
}

.auth-shell .auth-help-btn:hover {
    border-color: var(--auth-border-strong);
    color: var(--auth-text-secondary);
}

/* Buttons */
.auth-shell .auth-submit {
    margin-top: 24px;
}

.auth-shell .auth-submit .btn {
    height: 40px;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--auth-radius-sm);
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.auth-shell .auth-submit .btn-primary {
    background: var(--auth-accent) !important;
    border-color: var(--auth-accent) !important;
    color: #fff !important;
    box-shadow: none;
}

.auth-shell .auth-submit .btn-primary:hover,
.auth-shell .auth-submit .btn-primary:focus {
    filter: brightness(0.95);
    transform: none;
    box-shadow: none;
}

.auth-shell .auth-submit .btn-secondary {
    background: var(--auth-text-secondary) !important;
    border-color: var(--auth-text-secondary) !important;
    color: #fff !important;
}

/* Footer link */
.auth-shell .auth-footer-link {
    margin-top: 20px;
    text-align: center;
    font-size: 13px;
    color: var(--auth-text-secondary);
}

.auth-shell .auth-footer-link a {
    color: var(--auth-accent);
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.15s ease;
}

.auth-shell .auth-footer-link a:hover {
    opacity: 0.85;
    text-decoration: none;
}

/* Security badge */
.auth-shell .auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    margin-top: 24px;
    background: var(--auth-success-bg);
    border: 1px solid color-mix(in srgb, var(--auth-success) 20%, white);
    border-radius: 999px;
    color: var(--auth-success);
    font-size: 12px;
    font-weight: 500;
}

.auth-shell .auth-badge svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.auth-shell .auth-badge-wrap {
    text-align: center;
}

/* Marketing column (register) */
.auth-shell .auth-marketing {
    padding-right: 48px;
}

@media (max-width: 991px) {
    .auth-shell .auth-marketing {
        padding-right: 0;
        margin-bottom: 32px;
    }
}

.auth-shell .auth-marketing__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    margin-bottom: 20px;
    background: var(--auth-success-bg);
    border: 1px solid color-mix(in srgb, var(--auth-success) 20%, white);
    border-radius: 999px;
    color: var(--auth-success);
    font-size: 12px;
    font-weight: 500;
}

.auth-shell .auth-marketing__badge svg {
    width: 14px;
    height: 14px;
}

.auth-shell .auth-marketing__eyebrow {
    font-size: 15px;
    color: var(--auth-text-secondary);
    font-weight: 500;
    margin-bottom: 8px;
}

.auth-shell .auth-marketing__headline {
    font-size: 36px;
    line-height: 1.2;
    font-weight: 700;
    color: var(--auth-text);
    margin-bottom: 28px;
}

.auth-shell .auth-marketing__headline-accent {
    color: var(--auth-accent);
}

.auth-shell .auth-marketing__subhead {
    font-size: 14px;
    color: var(--auth-text-secondary);
    margin-bottom: 28px;
}

.auth-shell .auth-marketing__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.auth-shell .auth-marketing__list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--auth-text-secondary);
}

.auth-shell .auth-marketing__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 8px;
    height: 8px;
    background: var(--auth-accent);
    border-radius: 50%;
}

/* Alert in auth card */
.auth-shell .auth-card .alert {
    border-radius: var(--auth-radius-sm);
    font-size: 13px;
    margin-bottom: 20px;
}

/* Register layout */
.auth-shell .auth-register-row {
    align-items: center;
}

.auth-shell .auth-register-form-col .auth-card {
    max-width: none;
}

/* Verify page (within app layout) */
.auth-verify {
    max-width: 420px;
    margin: 0 auto;
    text-align: center;
}

.auth-verify .auth-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--auth-text, #18181b);
    margin-top: 24px;
}

.auth-verify .auth-subtitle {
    font-size: 14px;
    color: var(--auth-text-secondary, #52525b);
    margin-bottom: 24px;
}

.auth-verify .auth-footer-link {
    margin-top: 24px;
    font-size: 13px;
    color: var(--auth-text-secondary, #52525b);
}

.auth-verify .auth-footer-link a {
    color: var(--primary, #FF88C8);
    font-weight: 600;
    text-decoration: none;
}

.auth-verify .auth-icon-wrap {
    position: relative;
    width: 64px;
    height: 64px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-verify .auth-icon-wrap__bg {
    position: absolute;
    inset: 0;
    background: var(--auth-accent-soft, color-mix(in srgb, var(--primary) 10%, white));
    border-radius: 50%;
}
