:root {
    --accent: var(--primary, #d51522);
    --accent-strong: var(--primary-hover, rgb(201, 14, 48));
    --bg-deep: #0e0e0e;
    --bg-glow: #0e0e0e;
    --card-bg: rgba(22, 22, 22, 1);
    --card-foreground: #fff;
    --card-border: rgba(255, 255, 255, 0.06);
    --sg-border-color-translucent: rgba(255, 255, 255, 0.06);
    --text-muted: #8a8a8a;
    --input-bg: rgba(30, 30, 30, 1);
    --input-border: rgba(255, 255, 255, 0.1);
    --sg-secondary-color: rgba(255, 255, 255, 0.5);
}

*, *::before, *::after { box-sizing: border-box; }

body {
    position: relative;
    min-height: 100vh;
    padding: 3rem 1rem 2rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    margin: 0;
    background: radial-gradient(circle at 15% 20%, rgba(var(--primary-rgb, 213, 21, 34), 0.14), transparent 45%),
                radial-gradient(circle at 80% 10%, rgba(75, 75, 75, 0.08), transparent 50%),
                linear-gradient(140deg, var(--bg-deep), var(--bg-glow));
    color: #fff;
    overflow-x: hidden;
}

body::before,
body::after {
    content: '';
    position: fixed;
    border-radius: 999px;
    filter: blur(60px);
    opacity: 0.35;
    z-index: 0;
    pointer-events: none;
}

body::before {
    width: 260px;
    height: 260px;
    top: -60px;
    left: -20px;
    background: rgba(var(--primary-rgb, 213, 21, 34), 0.5);
}

body::after {
    width: 420px;
    height: 420px;
    bottom: -120px;
    right: -60px;
    background: rgba(var(--primary-rgb, 213, 21, 34), 0.5);
}

a {
    color: #fff;
}

a:hover {
    color: rgba(255, 255, 255, 0.7);
}

.container {
    max-width: 1350px
}

section {
    padding: 0 !important;
}

/* ---------- FORM CONTROLS ---------- */

.form-label {
    color: #fff;
    font-weight: 600;
    font-size: 0.88rem;
    margin-bottom: 0.4rem;
}

.form-control,
.form-select {
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 10px;
    color: #fff;
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
    transition: border-color 0.15s;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb, 213, 21, 34), 0.15);
    background: var(--input-bg);
    color: #fff;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.form-select option {
    background: #1a1a1a;
    color: #fff;
}

.sg-input-group .btn {
    border: 1px solid var(--input-border);
    background: var(--input-bg);
    color: var(--text-muted);
    font-size: 0.82rem;
}

.sg-input-group .btn:hover {
    color: #fff;
    border-color: rgba(255,255,255,0.2);
}

.btn {
    font-size: inherit;
    border: none;
    border-radius: 999px;
    padding: 0.95rem 1.5rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    box-shadow: 0 12px 28px rgba(var(--primary-rgb, 213, 21, 34), 0.35);
}
.btn.btn-primary {
    background: linear-gradient(120deg, var(--accent), var(--accent-strong));
}

.form-group {
    margin-bottom: 0.75rem;
}

label {
    margin-bottom: 0.25rem;
}

/* Auth card (sg- prefixed; main.css provides base .sg-card) */
.sg-card.sg-card-auth {
    position: relative;
    background: var(--card-bg);
    color: var(--card-foreground);
    border-radius: 24px;
    border: 1px solid var(--card-border);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.55);
    padding: 2.5rem clamp(1.5rem, 6vw, 3rem);
}
.sg-card.sg-card-auth .sg-card-header {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0.35rem 0 0;
    background-color: unset;
    border-bottom-color: rgba(255, 255, 255, 0.05);
}
.sg-card.sg-card-auth .sg-card-header > .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(var(--primary-rgb, 213, 21, 34), 0.15);
    margin-right: 0.5rem;
    vertical-align: middle;
}
.sg-card.sg-card-auth .sg-card-header > .icon > svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: var(--accent);
    stroke-width: 1.8;
}
.sg-card.sg-card-auth .sg-card-header > h4 {
    display: inline;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    vertical-align: middle;
}