/* Register page — overrides (login.css is loaded first) */

/* Wider card to accommodate 2-column field grid */
.auth-card {
    max-width: 560px;
}

/* Tighter row gap in the form grid */
.auth-card .row {
    --bs-gutter-x: 0.85rem;
}


/* ══════════════════════════════════════════════════════════════
   COLOR SETUP STEP (Step 2 of 2 – shown after registration)
══════════════════════════════════════════════════════════════ */

.color-setup-page {
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: #0a0a0a;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 80px 20px 60px;
}

.color-setup-inner {
    width: 100%;
    max-width: 880px;
    margin: 0 auto;
}

/* ── Header ─────────────────────────────────────────────────── */
.color-setup-header {
    text-align: center;
    margin-bottom: 2rem;
}

.cs-step-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--accent-red);
    background: rgba(196, 69, 54, 0.12);
    border: 1px solid rgba(196, 69, 54, 0.3);
    border-radius: 20px;
    padding: 5px 16px;
    margin-bottom: 1rem;
}

.color-setup-header h1 {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 30%, rgba(255, 255, 255, 0.55));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.color-setup-header p {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.95rem;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ── Group Card ──────────────────────────────────────────────── */
.cs-card {
    background: #111111;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.cs-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cs-group-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.cs-group-badge {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #fff;
    background: linear-gradient(135deg, var(--accent-red), #ff6b4a);
    border-radius: 10px;
    padding: 2px 9px;
    margin-left: 8px;
    vertical-align: middle;
}

.cs-toggle-all {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent-red);
    background: transparent;
    border: 1px solid rgba(196, 69, 54, 0.35);
    border-radius: 8px;
    padding: 4px 12px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    line-height: 1;
}

.cs-toggle-all:hover {
    background: rgba(196, 69, 54, 0.1);
    border-color: var(--accent-red);
}

/* ── Color Grid & Item ───────────────────────────────────────── */
.cs-colors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
    gap: 8px;
}

.cs-color-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 6px 8px;
    border-radius: 12px;
    border: 2px solid transparent;
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s, transform 0.15s;
    position: relative;
    user-select: none;
}

.cs-color-item:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.cs-color-item.cs-selected {
    border-color: var(--accent-red);
    background: rgba(196, 69, 54, 0.09);
}

.cs-swatch {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.cs-swatch-name {
    font-size: 0.64rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    line-height: 1.25;
    max-width: 70px;
}

/* Checkmark badge */
.cs-check {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: var(--accent-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
    color: #fff;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.18s, transform 0.18s;
}

.cs-color-item.cs-selected .cs-check {
    opacity: 1;
    transform: scale(1);
}

/* ── Sticky Footer ───────────────────────────────────────────── */
.cs-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #111111;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    padding: 1.1rem 1.5rem;
    position: sticky;
    bottom: 20px;
    gap: 1rem;
    margin-top: 1rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.cs-count {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.45);
}

.cs-count strong {
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
}

.cs-finish-btn {
    background: linear-gradient(135deg, #c44536, #a33025);
    border: none;
    color: #fff;
    font-family: 'Raleway', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 11px 26px;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
    white-space: nowrap;
}

.cs-finish-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(196, 69, 54, 0.4);
}

.cs-finish-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 576px) {
    .color-setup-page {
        padding: 70px 12px 80px;
    }

    .cs-card {
        padding: 1rem;
        border-radius: 14px;
    }

    .cs-colors-grid {
        grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
        gap: 6px;
    }

    .cs-footer {
        flex-direction: column;
        text-align: center;
        bottom: 12px;
        padding: 1rem;
    }

    .cs-finish-btn {
        width: 100%;
        justify-content: center;
    }
}


/* ════════════════════════════════════════════════════════════
   LOGO SETUP STEP (Step 3 of 3)
════════════════════════════════════════════════════════════ */

.logo-setup-inner {
    max-width: 520px;
}

.logo-upload-zone {
    background: #111111;
    border: 2px dashed rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    margin-bottom: 1rem;
}

.logo-upload-zone:hover {
    border-color: rgba(196, 69, 54, 0.5);
    background: rgba(196, 69, 54, 0.04);
}

.logo-upload-zone.has-preview {
    padding: 1.5rem;
    border-style: solid;
    border-color: rgba(196, 69, 54, 0.4);
}

.logo-upload-placeholder i {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.2);
    display: block;
    margin-bottom: 0.75rem;
}

.logo-upload-placeholder p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
}

.logo-upload-placeholder small {
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.78rem;
}

#logoPreviewImg {
    display: none;
    max-height: 120px;
    max-width: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.cs-skip-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.45);
    font-family: 'Raleway', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 11px 22px;
    border-radius: 12px;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
    white-space: nowrap;
}

.cs-skip-btn:hover {
    color: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.25);
}

.logo-setup-footer .cs-finish-btn {
    flex: 1;
}
