:root {
    --lc-red: #F51D45;
    --lc-red-dark: #D4183A;
    --lc-red-light: #FEE8EC;
    --lc-red-glow: rgba(245, 29, 69, 0.18);
    --lc-dark: #111111;
    --lc-bg: #F8F9FB;
    --lc-card: #FFFFFF;
    --lc-border: #E5E7EB;
    --lc-success: #22C55E;
    --lc-muted: #6B7280;
}

.auth-livecraft {
    --bs-primary: #F51D45;
    --bs-primary-rgb: 245, 29, 69;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--lc-bg);
    color: var(--lc-dark);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.auth-livecraft .auth-bg {
    background:
        radial-gradient(ellipse 80% 60% at 20% 10%, rgba(245, 29, 69, 0.07) 0%, transparent 55%),
        radial-gradient(ellipse 60% 50% at 90% 90%, rgba(17, 17, 17, 0.04) 0%, transparent 50%),
        var(--lc-bg);
    min-height: 100vh;
}

/* Split layout */
.auth-split {
    min-height: 100vh;
    display: flex;
    flex-wrap: wrap;
}

.auth-split__form {
    flex: 1 1 420px;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
}

.auth-split__hero {
    flex: 1 1 480px;
    min-width: 0;
    background: linear-gradient(145deg, #111111 0%, #1f1f1f 50%, #2a1018 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2.5rem;
    position: relative;
    overflow: hidden;
}

.auth-split__hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 70% 30%, rgba(245, 29, 69, 0.35) 0%, transparent 45%),
        radial-gradient(circle at 20% 80%, rgba(245, 29, 69, 0.15) 0%, transparent 40%);
    pointer-events: none;
}

.auth-split__hero-inner {
    position: relative;
    z-index: 1;
    max-width: 420px;
}

/* Centered wizard layout */
.auth-centered {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1.25rem 3rem;
}

.auth-centered__inner {
    width: 100%;
    max-width: 520px;
}

/* Logo */
.auth-logo {
    height: 44px;
    width: auto;
    margin-bottom: 2rem;
}

.auth-logo--sm {
    height: 36px;
    margin-bottom: 1.5rem;
}

/* Cards */
.auth-card {
    background: var(--lc-card);
    border: 1px solid var(--lc-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(17, 17, 17, 0.07);
    padding: 2rem 2.25rem;
}

@media (max-width: 575.98px) {
    .auth-card {
        padding: 1.5rem 1.25rem;
        border-radius: 14px;
    }
}

.auth-card__title {
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--lc-dark);
    margin-bottom: 0.35rem;
}

.auth-card__subtitle {
    font-size: 0.9rem;
    color: var(--lc-muted);
    margin-bottom: 1.75rem;
}

/* Form */
.auth-livecraft .form-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--lc-dark);
    margin-bottom: 0.4rem;
}

.auth-livecraft .form-control,
.auth-livecraft .form-select {
    border: 1px solid var(--lc-border);
    border-radius: 10px;
    padding: 0.7rem 0.9rem;
    font-size: 0.95rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.auth-livecraft .form-control:focus,
.auth-livecraft .form-select:focus {
    border-color: var(--lc-red);
    box-shadow: 0 0 0 3px var(--lc-red-glow);
}

.auth-livecraft .input-group-text {
    background: var(--lc-bg);
    border-color: var(--lc-border);
    color: var(--lc-muted);
    border-radius: 0 10px 10px 0;
}

/* Buttons */
.auth-btn-primary {
    background: var(--lc-red);
    border: none;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
}

.auth-btn-primary:hover {
    background: var(--lc-red-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px var(--lc-red-glow);
}

.auth-btn-primary:active {
    transform: translateY(0);
}

.auth-btn-outline {
    background: transparent;
    border: 1px solid var(--lc-border);
    color: var(--lc-dark);
    font-weight: 600;
    border-radius: 10px;
    padding: 0.7rem 1.25rem;
    transition: all 0.15s;
}

.auth-btn-outline:hover {
    border-color: var(--lc-red);
    color: var(--lc-red);
    background: var(--lc-red-light);
}

/* Hero content */
.auth-hero-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.auth-hero-text {
    font-size: 1rem;
    opacity: 0.85;
    line-height: 1.6;
    margin-bottom: 2rem;
}

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

.auth-benefit-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0;
    font-size: 0.95rem;
    font-weight: 500;
}

.auth-benefit-list li i {
    color: var(--lc-red);
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}

.auth-hero-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--lc-red);
    background: rgba(245, 29, 69, 0.15);
    border: 1px solid rgba(245, 29, 69, 0.3);
    border-radius: 99px;
    padding: 0.3rem 0.75rem;
    margin-bottom: 1.25rem;
}

/* Register wizard */
.auth-wizard-steps {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.auth-wizard-step-dot {
    flex: 1;
    height: 4px;
    border-radius: 99px;
    background: var(--lc-border);
    transition: background 0.3s;
}

.auth-wizard-step-dot.active {
    background: var(--lc-red);
}

.auth-wizard-step-dot.done {
    background: var(--lc-success);
}

.auth-register-step {
    display: none;
}

.auth-register-step.active {
    display: block;
}

.auth-category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
}

@media (min-width: 400px) {
    .auth-category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.auth-category-card {
    border: 2px solid var(--lc-border);
    border-radius: 12px;
    padding: 0.85rem 0.65rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s;
    background: var(--lc-card);
    user-select: none;
}

.auth-category-card:hover {
    border-color: #D1D5DB;
}

.auth-category-card.selected {
    border-color: var(--lc-red);
    background: var(--lc-red-light);
    box-shadow: 0 0 0 3px var(--lc-red-glow);
}

.auth-category-card .emoji {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.25rem;
}

.auth-category-card .name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--lc-dark);
}

/* Photo upload step */
.auth-photo-upload {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 2.5px dashed var(--lc-border);
    background: var(--lc-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    cursor: pointer;
    margin: 0 auto 1rem;
    transition: all 0.2s;
    overflow: hidden;
    position: relative;
}

.auth-photo-upload:hover {
    border-color: var(--lc-red);
    background: var(--lc-red-light);
}

.auth-photo-upload.has-preview {
    border-style: solid;
    border-color: var(--lc-card);
}

.auth-photo-upload img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.auth-photo-upload i {
    font-size: 2rem;
    color: var(--lc-muted);
}

.auth-photo-upload span {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--lc-muted);
}

/* Links */
.auth-link {
    color: var(--lc-red);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.875rem;
}

.auth-link:hover {
    color: var(--lc-red-dark);
    text-decoration: underline;
}

.auth-footer-text {
    font-size: 0.875rem;
    color: var(--lc-muted);
    text-align: center;
    margin-top: 1.5rem;
}

/* Onboarding welcome (dashboard) */
.onboarding-welcome {
    background: var(--lc-card);
    border: 1px solid var(--lc-border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(17, 17, 17, 0.06);
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.onboarding-welcome::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--lc-red), #FF6B82);
}

.onboarding-welcome .completion-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--lc-red-light);
    color: var(--lc-red);
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 99px;
    padding: 0.4rem 1rem;
    margin: 1rem 0;
}

@media (max-width: 991.98px) {
    .auth-split__hero {
        display: none;
    }
}
