:root {
    --bg-main: #0F172A;
    --bg-card: #1E293B;
    --bg-input: #0F172A;
    
    --primary: #16A34A;
    --primary-hover: #15803D;
    --text-white: #F8FAFC;
    --text-muted: #94A3B8;
    --border: #334155;
    --error: #EF4444;
    --error-bg: rgba(239, 68, 68, 0.1);
    --success-bg: rgba(22, 163, 74, 0.1);
    
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Montserrat', sans-serif;
    
    --transition: all 0.2s ease;
    --radius: 8px;
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-white);
    font-family: var(--font-body);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

h1, h2, h3 { font-family: var(--font-heading); }

/* Card */
.reg-card {
    width: 100%;
    max-width: 480px;
    background: var(--bg-card);
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    border: 1px solid var(--border);
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Header */
.reg-header { text-align: center; margin-bottom: 24px; }
.reg-logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 24px;
    margin-bottom: 16px;
    display: inline-block;
    color: var(--text-white);
}
.reg-logo span { color: var(--primary); }
.reg-title { font-size: 22px; margin-bottom: 8px; }
.reg-subtitle { font-size: 14px; color: var(--text-muted); line-height: 1.5; }

/* Badge */
.reg-badge {
    background: var(--success-bg);
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 10px 14px;
    border-radius: var(--radius);
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
    animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Forms */
.reg-form-group { margin-bottom: 20px; }
.reg-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-muted);
}
.reg-input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-white);
    padding: 12px 16px;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 15px;
    transition: var(--transition);
}
.reg-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.2);
}
.reg-input.error { border-color: var(--error); }
.reg-error-text {
    color: var(--error);
    font-size: 12px;
    margin-top: 6px;
    display: block;
}
.reg-input:disabled { opacity: 0.7; cursor: not-allowed; }
.reg-input.readonly-ref {
    background: rgba(30, 41, 59, 0.5); /* subtle diff */
}

/* Password Eye Toggle */
.reg-pw-wrapper { position: relative; }
.reg-pw-wrapper .reg-input { padding-right: 3rem; }
.reg-pw-eye {
    position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
    background: none; border: none; cursor: pointer; padding: 8px;
    min-width: 44px; min-height: 44px;
    display: flex; align-items: center; justify-content: center;
    color: #94A3B8; transition: color 0.2s;
}
.reg-pw-eye:hover { color: #CBD5E1; }

/* Checkbox */
.reg-checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 24px;
}
.reg-checkbox-group input {
    margin-top: 4px;
    accent-color: var(--primary);
    width: 16px;
    height: 16px;
}
.reg-checkbox-label {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Button */
.reg-btn {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 14px;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.reg-btn:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: translateY(-1px);
}
.reg-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Status text */
.reg-status { text-align: center; margin-top: 16px; font-size: 13px; color: var(--error); }

/* Success Block */
.reg-success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--success-bg);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}
.reg-success-icon svg { width: 32px; height: 32px; }
.reg-success-text {
    text-align: center;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 24px;
    color: var(--text-muted);
}
.reg-success-text strong { color: var(--text-white); }
.reg-premium-box {
    background: rgba(245, 158, 11, 0.1);
    border: 1px dashed #F59E0B;
    padding: 12px;
    border-radius: var(--radius);
    text-align: center;
    font-size: 14px;
    color: #FBBF24;
    margin-bottom: 24px;
}
.reg-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}
.reg-link:hover { text-decoration: underline; }

/* Large Inputs for code */
.reg-input-large {
    font-size: 20px;
    text-align: center;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: var(--font-heading);
    padding: 16px;
}

/* Spinner */
.spinner {
    animation: rotate 2s linear infinite;
    z-index: 2;
    width: 20px;
    height: 20px;
}
.spinner .path {
    stroke: #ffffff;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}
@keyframes rotate { 100% { transform: rotate(360deg); } }
@keyframes dash {
  0% { stroke-dasharray: 1, 150; stroke-dashoffset: 0; }
  50% { stroke-dasharray: 90, 150; stroke-dashoffset: -35; }
  100% { stroke-dasharray: 90, 150; stroke-dashoffset: -124; }
}
