:root {
    --cc-gold: #f5c518;
    --cc-gold-2: #ffdf6b;
    --cc-crimson: #e50914;
    --cc-bg: #080b12;
    --cc-card: rgba(14, 18, 28, 0.92);
    --cc-border: rgba(245, 197, 24, 0.24);
    --cc-muted: #94a3b8;
    --cc-green: #22c55e;
    --cc-red: #ef4444;
}

.cc-auth-stage {
    position: relative;
    min-height: calc(100vh - 120px);
    padding: 48px 0 80px;
    overflow: hidden;
    font-family: 'Cairo', sans-serif;
    background:
        radial-gradient(ellipse 80% 50% at 85% 10%, rgba(229, 9, 20, 0.18), transparent 60%),
        radial-gradient(ellipse 70% 55% at 12% 88%, rgba(245, 197, 24, 0.14), transparent 60%),
        linear-gradient(180deg, #07090f 0%, #0d121d 55%, #07090f 100%);
}

.cc-auth-stage::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(245, 197, 24, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(245, 197, 24, 0.03) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 90%);
    pointer-events: none;
}

.cc-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.28;
    pointer-events: none;
    animation: ccFloat 10s ease-in-out infinite alternate;
}
.cc-orb-1 { width: 320px; height: 320px; background: #f5c518; top: -80px; left: -80px; }
.cc-orb-2 { width: 360px; height: 360px; background: #e50914; bottom: -100px; right: -80px; animation-delay: -5s; }

@keyframes ccFloat {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(28px, 22px) scale(1.08); }
}

.cc-hero-top {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-bottom: 30px;
}

.cc-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    border-radius: 999px;
    background: rgba(245, 197, 24, 0.1);
    border: 1px solid rgba(245, 197, 24, 0.35);
    color: var(--cc-gold);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
}

.cc-hero-title {
    font-family: 'Cinzel', 'Cairo', sans-serif;
    font-size: 34px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
}

.cc-hero-title span {
    background: linear-gradient(135deg, #fff4b8 0%, #f5c518 45%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cc-hero-sub {
    color: var(--cc-muted);
    font-size: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.cc-glass-card {
    position: relative;
    z-index: 2;
    background: var(--cc-card);
    border: 1px solid var(--cc-border);
    border-radius: 20px;
    padding: 32px 30px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(14px);
}

.cc-glass-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--cc-gold), transparent);
    opacity: 0.7;
}

.cc-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 16px;
    margin-bottom: 24px;
}

.cc-card-head h2 {
    color: #fff;
    font-size: 21px;
    font-weight: 800;
    margin: 0;
}

.cc-card-head span {
    font-size: 12px;
    font-weight: 700;
    color: var(--cc-gold);
    background: rgba(245, 197, 24, 0.1);
    border: 1px solid rgba(245, 197, 24, 0.25);
    padding: 4px 10px;
    border-radius: 8px;
}

.cc-field { margin-bottom: 18px; }

.cc-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #e2e8f0;
    font-size: 13.5px;
    font-weight: 700;
    margin-bottom: 7px;
}

.cc-label small {
    color: var(--cc-muted);
    font-weight: 600;
    font-size: 12px;
}

.cc-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.cc-input-icon {
    position: absolute;
    left: 14px;
    color: var(--cc-gold);
    font-size: 15px;
    pointer-events: none;
    z-index: 2;
}

.cc-input {
    width: 100%;
    height: 48px;
    background: rgba(8, 11, 18, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: #fff;
    font-size: 14.5px;
    font-weight: 600;
    padding: 0 44px 0 42px;
    transition: all 0.2s ease;
}

.cc-input::placeholder { color: #64748b; font-weight: 400; }
.cc-input:focus {
    outline: none;
    border-color: var(--cc-gold);
    background: rgba(12, 17, 28, 0.98);
    box-shadow: 0 0 0 3px rgba(245, 197, 24, 0.16);
}

.cc-eye-btn {
    position: absolute;
    right: 12px;
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 6px;
}
.cc-eye-btn:hover { color: var(--cc-gold); }

.cc-captcha-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.cc-captcha-img-box {
    height: 48px;
    padding: 4px 8px;
    border-radius: 12px;
    background: #0b0f18;
    border: 1px solid rgba(245, 197, 24, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cc-captcha-img-box img {
    height: 38px;
    border-radius: 6px;
    display: block;
}

.cc-refresh-btn {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(245, 197, 24, 0.12);
    border: 1px solid rgba(245, 197, 24, 0.35);
    color: var(--cc-gold);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}
.cc-refresh-btn:hover { background: var(--cc-gold); color: #111; }

.cc-submit-btn {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #f5c518 0%, #f59e0b 55%, #d97706 100%);
    color: #111;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 12px 28px rgba(245, 197, 24, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cc-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(245, 197, 24, 0.38);
}

.reg-alert {
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    line-height: 1.65;
}
.reg-alert-error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.42);
    color: #fecaca;
}
.reg-alert-success {
    background: rgba(34, 197, 94, 0.13);
    border: 1px solid rgba(34, 197, 94, 0.45);
    color: #bbf7d0;
}

.cc-action-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 26px 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(245, 197, 24, 0.2);
    color: #fff;
    text-decoration: none !important;
    transition: all 0.22s ease;
    height: 100%;
}
.cc-action-tile:hover {
    transform: translateY(-4px);
    border-color: var(--cc-gold);
    background: rgba(245, 197, 24, 0.08);
    color: var(--cc-gold);
}
.cc-action-tile i {
    font-size: 28px;
    color: var(--cc-gold);
}

@media (max-width: 767px) {
    .cc-hero-title { font-size: 26px; }
    .cc-glass-card { padding: 24px 18px; }
}
