/* ===== MODERN DARK CRYPTO AUTH - REGISTER ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --auth-bg: #0a0e17;
    --auth-card: #111827;
    --auth-input: rgba(255,255,255,0.04);
    --auth-border: rgba(255,255,255,0.08);
    --auth-accent: #3b82f6;
    --auth-accent-glow: rgba(59,130,246,0.25);
    --auth-purple: #8b5cf6;
    --auth-green: #10b981;
    --auth-red: #ef4444;
    --auth-text: #f1f5f9;
    --auth-text-muted: #94a3b8;
    --auth-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
}

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

/* Override frontend_style_blue.css variables */
body.auth-page {
    --color-white: #0a0e17 !important;
    --color-primary: #0a0e17 !important;
    font-family: 'Inter', -apple-system, sans-serif !important;
    background: #0a0e17 !important;
    background-color: #0a0e17 !important;
    color: #f1f5f9 !important;
    min-height: 100vh; -webkit-font-smoothing: antialiased;
}

.auth-container { display: flex; min-height: 100vh; width: 100%; background: #0a0e17 !important; }

.auth-left {
    flex: 1; display: flex; align-items: center; justify-content: center;
    padding: 40px 20px; background: #0a0e17 !important; position: relative; overflow-y: auto;
}
.auth-left::before {
    content: ''; position: absolute; top: -20%; right: -10%; width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(139,92,246,0.05) 0%, transparent 70%); pointer-events: none;
}

.register-form-container, .login-form-container {
    width: 100%; max-width: 460px; position: relative; z-index: 2;
}

.register-card, .login-card {
    background: #111827 !important; border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 20px; padding: 36px 32px; box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.register-logo, .login-logo { max-height: 48px; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3)); }

.register-title, .login-title {
    font-size: 24px; font-weight: 800; color: #f1f5f9 !important; margin-bottom: 6px; letter-spacing: -0.3px;
}
.register-subtitle, .login-subtitle { font-size: 14px; color: #94a3b8 !important; margin: 0; }

.form-label { font-size: 13px; font-weight: 600; color: #94a3b8 !important; margin-bottom: 6px; display: block; }

.input-wrapper { position: relative; }

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

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

.form-input, .form-control.form-input, select.form-input {
    width: 100%; padding: 12px 16px 12px 44px;
    background: rgba(255,255,255,0.04) !important; border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 12px; color: #f1f5f9 !important; font-size: 14px;
    font-family: 'Inter', sans-serif; transition: all 0.25s ease; outline: none;
    -webkit-appearance: none;
}
.form-input:focus, .form-control.form-input:focus, select.form-input:focus {
    border-color: #3b82f6 !important; box-shadow: 0 0 0 3px rgba(59,130,246,0.25) !important;
    background: rgba(255,255,255,0.06) !important;
}
.form-input::placeholder { color: #475569 !important; }

/* Select dropdown fix */
select.form-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    padding-right: 36px;
}
select.form-input option {
    background: #1e293b; color: var(--auth-text); padding: 8px;
}

.input-icon {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    font-size: 16px; opacity: 0.6; pointer-events: none;
}

/* ===== PASSWORD STRENGTH ===== */
.password-strength { margin-top: 6px; }
.strength-bar {
    height: 3px; border-radius: 3px; background: rgba(255,255,255,0.06);
    overflow: hidden; margin-bottom: 4px;
}
.strength-bar-fill {
    height: 100%; border-radius: 3px; transition: width 0.3s, background 0.3s; width: 0;
}
.strength-bar-fill.weak { width: 25%; background: var(--auth-red); }
.strength-bar-fill.fair { width: 50%; background: #f59e0b; }
.strength-bar-fill.good { width: 75%; background: #22d3ee; }
.strength-bar-fill.strong { width: 100%; background: var(--auth-green); }
.strength-text { font-size: 11px; color: var(--auth-text-muted); }

/* ===== CAPTCHA ===== */
.captcha-row {
    display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
    background: rgba(255,255,255,0.02); border: 1px solid var(--auth-border);
    border-radius: 12px; padding: 12px 16px;
}
.captcha-display {
    font-size: 22px; font-weight: 800; letter-spacing: 6px; color: var(--auth-accent);
    text-shadow: 0 0 10px var(--auth-accent-glow); user-select: none;
    font-family: 'Courier New', monospace;
}
.captcha-input {
    flex: 1; padding: 10px 14px; background: var(--auth-input) !important;
    border: 1px solid var(--auth-border) !important; border-radius: 10px;
    color: var(--auth-text) !important; font-size: 14px; font-family: 'Inter', sans-serif;
    outline: none; transition: all 0.25s ease;
}
.captcha-input:focus {
    border-color: var(--auth-accent) !important; box-shadow: 0 0 0 3px var(--auth-accent-glow) !important;
}
.captcha-input::placeholder { color: #475569; }
.captcha-refresh {
    background: none; border: 1px solid var(--auth-border); border-radius: 10px;
    color: var(--auth-text-muted); padding: 8px 12px; cursor: pointer; transition: all 0.2s;
    font-size: 16px;
}
.captcha-refresh:hover { background: rgba(255,255,255,0.05); color: var(--auth-accent); border-color: var(--auth-accent); }

/* ===== REGISTER BUTTON ===== */
.register-button, .login-button {
    width: 100%; padding: 14px; background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%) !important; color: #fff !important;
    border: none !important; border-radius: 12px; font-size: 15px; font-weight: 700;
    font-family: 'Inter', sans-serif; cursor: pointer; transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(59,130,246,0.25); letter-spacing: 0.02em;
}
.register-button:hover, .login-button:hover {
    transform: translateY(-2px); box-shadow: 0 8px 30px rgba(59,130,246,0.25);
}
.register-button:active, .login-button:active { transform: translateY(0); }
.register-button:disabled {
    opacity: 0.5; cursor: not-allowed; transform: none !important;
    box-shadow: none !important;
}

/* ===== VALIDATION ===== */
.validation-error {
    font-size: 11px; color: #f87171; margin-top: 4px; display: none;
}
.validation-error.show { display: block; }

.form-input.invalid, .captcha-input.invalid {
    border-color: var(--auth-red) !important; box-shadow: 0 0 0 2px rgba(239,68,68,0.15) !important;
}
.form-input.valid {
    border-color: var(--auth-green) !important; box-shadow: 0 0 0 2px rgba(16,185,129,0.15) !important;
}

/* ===== LINKS ===== */
.form-links { text-align: center; margin-top: 24px; }
.form-link-text { font-size: 13px; color: #94a3b8 !important; margin-bottom: 8px; }
.form-link { color: #3b82f6 !important; font-weight: 600; text-decoration: none; transition: color 0.2s; }
.form-link:hover { color: #8b5cf6 !important; text-decoration: none; }

/* ===== COPYRIGHT ===== */
.copyright-section { text-align: center; margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.08) !important; }
.copyright-text { font-size: 12px; color: #475569 !important; }

/* ===== RIGHT SIDE ===== */
.auth-right {
    flex: 1; position: relative; background-size: cover; background-position: center;
    display: flex; align-items: flex-end; justify-content: center; padding: 60px 40px;
}
.auth-right::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(10,14,23,0.95) 0%, rgba(10,14,23,0.4) 40%, rgba(10,14,23,0.2) 100%);
}
.auth-content { position: relative; z-index: 2; text-align: center; max-width: 400px; }
.auth-content-title { font-size: 28px; font-weight: 800; color: #fff; margin-bottom: 12px; letter-spacing: -0.5px; }
.auth-content-text { font-size: 15px; color: rgba(255,255,255,0.7); line-height: 1.7; }

/* ===== ALERTS ===== */
.alert-custom, .alert-custom-success {
    background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.2);
    color: #fca5a5; border-radius: 12px; font-size: 13px; padding: 12px 16px;
}
.alert-custom-success { background: rgba(16,185,129,0.1); border-color: rgba(16,185,129,0.2); color: #6ee7b7; }
.alert-custom .close, .alert-custom-success .close { color: inherit; opacity: 0.7; text-shadow: none; }
.alert-custom ul { margin: 0; padding-left: 16px; }

/* ===== COUNTRY SELECT ===== */
.country-select, select.country-select {
    width: 100%; padding: 12px 16px 12px 44px;
    background: var(--auth-input) !important; border: 1px solid var(--auth-border) !important;
    border-radius: 12px; color: var(--auth-text) !important; font-size: 14px;
    font-family: 'Inter', sans-serif; transition: all 0.25s ease; outline: none;
    -webkit-appearance: none; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important; background-position: right 14px center !important;
    padding-right: 36px;
}
select.country-select:focus {
    border-color: var(--auth-accent) !important; box-shadow: 0 0 0 3px var(--auth-accent-glow) !important;
    background-color: rgba(255,255,255,0.06) !important;
}
select.country-select option { background: #1e293b; color: var(--auth-text); }

/* ===== CAPTCHA BOX ===== */
.captcha-box {
    background: rgba(255,255,255,0.02); border: 1px solid var(--auth-border);
    border-radius: 12px; padding: 14px 16px;
}
.captcha-question {
    display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
    font-size: 14px; font-weight: 600; color: var(--auth-text);
}
.captcha-question span:first-child { font-size: 18px; }
.captcha-input {
    width: 100%; padding: 10px 14px; background: var(--auth-input) !important;
    border: 1px solid var(--auth-border) !important; border-radius: 10px;
    color: var(--auth-text) !important; font-size: 14px; font-family: 'Inter', sans-serif;
    outline: none; transition: all 0.25s ease;
}
.captcha-input:focus {
    border-color: var(--auth-accent) !important; box-shadow: 0 0 0 3px var(--auth-accent-glow) !important;
}
.captcha-input::placeholder { color: #475569; }
.captcha-error { font-size: 11px; color: #f87171; margin-top: 4px; display: block; }

/* ===== VALIDATION ICONS ===== */
.validation-icon {
    position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
    font-size: 14px; font-weight: 700; opacity: 0; transition: all 0.25s ease;
}
.validation-icon.valid { color: var(--auth-green); opacity: 1; }
.validation-icon.invalid { color: var(--auth-red); opacity: 1; }

/* ===== ERROR MESSAGES ===== */
.error-message { font-size: 11px; color: #f87171; margin-top: 4px; display: block; }
.help-block { font-size: 12px; color: #f87171; display: block; margin-bottom: 6px; }

/* ===== HONEYPOT ===== */
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

/* ===== FORM-ROW (email/phone side-by-side) ===== */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .auth-right { display: none; }
    .auth-left { padding: 30px 16px; }
    .register-card, .login-card { padding: 28px 20px; }
}
@media (max-width: 480px) {
    .register-card, .login-card { padding: 24px 16px; border-radius: 16px; }
    .register-title, .login-title { font-size: 20px; }
    .form-row-2, .form-row { grid-template-columns: 1fr; }
}
