:root {
    --gold: #22C55E;
    --gold-light: #4ADE80;
    --gold-dark: #15803D;
    --purple: #7C3AED;
    --purple-light: #A78BFA;
    --bg: #05080a;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    min-height: 100vh;
    background: var(--bg);
    font-family: 'Montserrat', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
    isolation: isolate;
    padding: 30px 15px;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-color: var(--bg);
        background-image: url('../img/rich_auth_bg.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transform: scale(1.05);
    transform-origin: center center;
    }

body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(ellipse 90% 70% at 50% 105%, rgba(34, 197, 94, 0.14), transparent 58%),
        radial-gradient(ellipse 65% 55% at 92% 8%, rgba(107, 45, 107, 0.22), transparent 48%),
        linear-gradient(168deg, rgba(6, 6, 12, 0.91) 0%, rgba(10, 8, 18, 0.62) 45%, rgba(8, 6, 16, 0.93) 100%);
}

.bg-glow,
.particles {
    display: none !important;
}

.register-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 440px;
}

.register-card {
    background: linear-gradient(165deg, rgba(22,22,34,0.94), rgba(12,12,20,0.96));
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid rgba(34,197,94,0.38);
    border-radius: 24px;
    padding: 40px 35px;
    box-shadow:
        0 24px 70px rgba(0,0,0,0.55),
        0 0 0 1px rgba(255,255,255,0.04) inset,
        0 1px 0 rgba(255,255,255,0.07) inset;
    position: relative;
    overflow: hidden;
}

.register-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.logo-area {
    text-align: center;
    margin-bottom: 30px;
}

.logo-box {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
}

.logo-ring {
    position: absolute;
    inset: -3px;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--gold), var(--purple-light), var(--gold-dark));
    animation: none;
}

.logo-inner {
    position: absolute;
    inset: 2px;
    border-radius: 19px;
    background: var(--bg);
}

.logo-img {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 18px;
    overflow: hidden;
    border: 2px solid var(--gold);
}
.logo-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-name {
    font-family: 'Montserrat', system-ui, sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: var(--gold);
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(34,197,94,0.3);
}

.brand-sub {
    font-family: 'Montserrat', system-ui, sans-serif;
    font-size: 9px;
    color: var(--purple-light);
    letter-spacing: 5px;
    margin-top: 4px;
}

.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.input-box {
    position: relative;
}

.input-box i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold);
    font-size: 16px;
    opacity: 0.6;
}

.form-input {
    width: 100%;
    padding: 14px 16px 14px 44px;
    background: rgba(0,0,0,0.38);
    border: 1px solid rgba(34,197,94,0.28);
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 20px rgba(34,197,94,0.15);
}

.form-input::placeholder {
    color: rgba(255,255,255,0.3);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.alert {
    padding: 12px 15px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-error {
    background: rgba(220,53,69,0.15);
    border: 1px solid rgba(220,53,69,0.3);
    color: #ff6b7a;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 22px;
}

.checkbox-group input {
    display: none;
}

.custom-check {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid rgba(34,197,94,0.4);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 2px;
}

.checkbox-group input:checked + .custom-check {
    background: var(--gold);
    border-color: var(--gold);
}

.custom-check i {
    font-size: 12px;
    color: #000;
    opacity: 0;
}

.checkbox-group input:checked + .custom-check i {
    opacity: 1;
}

.checkbox-text {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    line-height: 1.4;
    cursor: pointer;
}

.btn-register {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border: none;
    border-radius: 12px;
    color: #000;
    font-family: 'Montserrat', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(34,197,94,0.4);
}

.form-footer {
    text-align: center;
    margin-top: 22px;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

.form-footer a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
}

.hp { position: absolute; left: -9999px; }

/* SUCCESS POPUP */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.popup-box {
    background: linear-gradient(160deg, #12121a, #0a0a10);
    border: 2px solid var(--gold);
    border-radius: 24px;
    padding: 40px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    animation: popupIn 0.3s ease-out;
}

@keyframes popupIn {
    from { transform: scale(0.96); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.popup-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #00C853, #00E676);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    box-shadow: 0 10px 40px rgba(0,200,83,0.4);
}

.popup-icon i {
    font-size: 40px;
    color: #fff;
}

.popup-title {
    font-family: 'Montserrat', system-ui, sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 15px;
}

.popup-text {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.popup-code {
    background: rgba(34,197,94,0.15);
    border: 1px solid var(--gold);
    border-radius: 10px;
    padding: 15px;
    margin: 20px 0;
}

.popup-code-label {
    font-size: 11px;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.popup-code-value {
    font-family: ui-monospace, 'Cascadia Code', 'Segoe UI Mono', monospace;
    font-size: 28px;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 4px;
}

.popup-cmd-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
    margin: 15px 0;
    flex-wrap: wrap;
}
.popup-cmd-text {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    padding: 12px 14px;
    font-family: ui-monospace, 'Cascadia Code', monospace;
    font-size: 14px;
    color: #00E676;
    background: rgba(0, 230, 118, 0.08);
    border: 1px solid rgba(0, 230, 118, 0.35);
    border-radius: 10px;
    word-break: break-all;
    line-height: 1.45;
}
.popup-copy-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 16px;
    min-width: 48px;
    border: 1px solid rgba(34, 197, 94, 0.45);
    border-radius: 10px;
    background: rgba(34, 197, 94, 0.12);
    color: var(--gold-light);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, border-color 0.2s;
    font-family: 'Montserrat', sans-serif;
}
.popup-copy-btn:hover {
    background: rgba(34, 197, 94, 0.22);
    border-color: var(--gold);
    transform: translateY(-1px);
}
.popup-copy-btn:active {
    transform: translateY(0);
}
.popup-copy-btn.is-done {
    border-color: rgba(0, 230, 118, 0.6);
    color: #00E676;
    background: rgba(0, 230, 118, 0.12);
}
.popup-copy-btn i {
    font-size: 1.1rem;
}

.popup-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border: none;
    border-radius: 12px;
    color: #000;
    font-family: 'Montserrat', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
}

.popup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(34,197,94,0.4);
}

.popup-bot-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 16px;
    margin-top: 14px;
    background: rgba(0, 229, 118, 0.12);
    border: 1px solid rgba(0, 230, 118, 0.55);
    border-radius: 12px;
    color: #00E676;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: background 0.2s, transform 0.2s;
}
.popup-bot-link:hover {
    background: rgba(0, 229, 118, 0.22);
    transform: translateY(-1px);
}
.popup-bot-meta {
    font-size: 12px;
    color: rgba(255,255,255,0.45);
    margin-top: 8px;
    text-align: center;
}

@media (max-width: 480px) {
    .register-card { padding: 30px 22px; }
    .form-row { grid-template-columns: 1fr; }
    .brand-name { font-size: 22px; }
    .logo-box { width: 85px; height: 85px; }
    .popup-box { padding: 30px 25px; }
    .popup-code-value { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
    .popup-box { animation: none; }
}