/**
 * Arcane Holographic Theme - Public Pages
 * Applied to login, register, and onboarding wizard
 * Matches dashboard Arcane theme aesthetic
 */

/* ============================================
   BASE STYLES
   ============================================ */

body {
    background: radial-gradient(circle at center, #0b0f1a 0%, #05070D 100%);
    background-attachment: fixed;
    color: #cfefff;
    font-family: 'Inter', 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ============================================
   AMBIENT PARTICLES BACKGROUND
   ============================================ */

#publicParticles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background-image: radial-gradient(circle, rgba(0, 234, 255, 0.25) 1px, transparent 1px);
    background-size: 3px 3px;
    opacity: 0.08;
    animation: particleDrift 20s linear infinite;
}

@keyframes particleDrift {
    0% { background-position: 0 0; }
    100% { background-position: 100px 100px; }
}

/* ============================================
   HOLOGRAPHIC PANELS
   ============================================ */

.holo-public-panel {
    width: 420px;
    margin: 120px auto;
    padding: 40px;
    background: rgba(10, 14, 26, 0.5);
    border: 1px solid rgba(0, 234, 255, 0.3);
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 234, 255, 0.15);
    backdrop-filter: blur(12px);
    position: relative;
    z-index: 10;
}

.holo-public-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(0, 234, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 234, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.2;
    border-radius: 12px;
    pointer-events: none;
    z-index: -1;
}

/* ============================================
   TITLES & HEADINGS
   ============================================ */

.holo-title {
    color: #00eaff;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 0 0 20px #00eaff;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.holo-subtitle {
    color: #8bb3c4;
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 25px;
    opacity: 0.8;
}

/* ============================================
   FORM INPUTS
   ============================================ */

.holo-public-panel input,
.holo-public-panel select,
.holo-public-panel textarea {
    width: 100%;
    padding: 12px 18px;
    margin-bottom: 18px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(0, 234, 255, 0.3);
    color: #cfefff;
    border-radius: 6px;
    transition: 0.25s;
    font-family: inherit;
    font-size: 0.95rem;
    box-sizing: border-box;
}

.holo-public-panel input:focus,
.holo-public-panel select:focus,
.holo-public-panel textarea:focus {
    border-color: #00eaff;
    box-shadow: 0 0 18px rgba(0, 234, 255, 0.4);
    outline: none;
    background: rgba(0, 0, 0, 0.5);
}

.holo-public-panel input::placeholder,
.holo-public-panel textarea::placeholder {
    color: #8bb3c4;
    opacity: 0.6;
}

.holo-public-panel label {
    color: #00eaff;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    display: block;
    text-shadow: 0 0 8px rgba(0, 234, 255, 0.5);
}

/* ============================================
   HOLOGRAPHIC BUTTONS
   ============================================ */

.holo-btn {
    background: rgba(10, 14, 26, 0.65);
    border: 1px solid #00eaff;
    color: #00eaff;
    padding: 12px 22px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: 0.3s ease;
    box-shadow: 0 0 14px rgba(0, 234, 255, 0.25);
    font-family: inherit;
    font-size: 0.95rem;
    text-transform: uppercase;
    font-weight: 500;
    width: 100%;
    margin-top: 10px;
}

.holo-btn:hover {
    background: rgba(0, 234, 255, 0.15);
    box-shadow: 0 0 25px rgba(0, 234, 255, 0.6);
    transform: translateY(-1px);
}

.holo-btn:active {
    transform: translateY(0);
    box-shadow: 0 0 18px rgba(0, 234, 255, 0.4);
}

.holo-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: 0 0 8px rgba(0, 234, 255, 0.15);
}

.holo-btn-secondary {
    background: rgba(10, 14, 26, 0.4);
    border-color: rgba(0, 234, 255, 0.5);
    color: #8bb3c4;
}

.holo-btn-secondary:hover {
    background: rgba(0, 234, 255, 0.1);
    color: #00eaff;
}

/* ============================================
   WIZARD STEP INDICATORS
   ============================================ */

.wizard-step {
    border: 1px solid rgba(0, 234, 255, 0.35);
    padding: 8px 12px;
    color: #00eaff;
    background: rgba(10, 14, 26, 0.6);
    box-shadow: 0 0 10px rgba(0, 234, 255, 0.25);
    border-radius: 6px;
    display: inline-block;
    margin: 0 5px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: 0.3s ease;
}

.wizard-step.active {
    box-shadow: 0 0 25px rgba(0, 234, 255, 0.6);
    background: rgba(0, 234, 255, 0.15);
    border-color: #00eaff;
}

.wizard-step.completed {
    border-color: rgba(0, 234, 255, 0.5);
    color: #8bb3c4;
}

/* ============================================
   LINKS & TEXT
   ============================================ */

.holo-link {
    color: #00eaff;
    text-decoration: none;
    text-shadow: 0 0 8px rgba(0, 234, 255, 0.5);
    transition: 0.2s ease;
}

.holo-link:hover {
    color: #33ffc9;
    text-shadow: 0 0 12px rgba(0, 234, 255, 0.8);
}

.holo-text {
    color: #cfefff;
    line-height: 1.6;
}

.holo-text-dim {
    color: #8bb3c4;
    opacity: 0.8;
}

/* ============================================
   ERROR & SUCCESS MESSAGES
   ============================================ */

.holo-error {
    background: rgba(255, 107, 107, 0.15);
    border: 1px solid rgba(255, 107, 107, 0.5);
    color: #ff6b6b;
    padding: 12px 18px;
    border-radius: 6px;
    margin-bottom: 18px;
    box-shadow: 0 0 12px rgba(255, 107, 107, 0.2);
    text-shadow: 0 0 8px rgba(255, 107, 107, 0.5);
}

.holo-success {
    background: rgba(0, 234, 255, 0.15);
    border: 1px solid rgba(0, 234, 255, 0.5);
    color: #00eaff;
    padding: 12px 18px;
    border-radius: 6px;
    margin-bottom: 18px;
    box-shadow: 0 0 12px rgba(0, 234, 255, 0.2);
    text-shadow: 0 0 8px rgba(0, 234, 255, 0.5);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .holo-public-panel {
        width: 90%;
        max-width: 420px;
        margin: 60px auto;
        padding: 30px 20px;
    }

    .holo-title {
        font-size: 1.5rem;
    }
}

/* ============================================
   LOADING STATES
   ============================================ */

.holo-loading {
    color: #00eaff;
    text-align: center;
    padding: 20px;
    text-shadow: 0 0 12px rgba(0, 234, 255, 0.5);
}

.holo-spinner {
    border: 2px solid rgba(0, 234, 255, 0.3);
    border-top-color: #00eaff;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
    box-shadow: 0 0 12px rgba(0, 234, 255, 0.3);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   ONBOARDING WIZARD SPECIFIC
   ============================================ */

/* Override onboarding.css to use Arcane theme */
.onboarding-container {
    min-height: 100vh;
    padding: 20px;
}

.glass-panel.holo-public-panel {
    width: 90%;
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
}

.step-indicator {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.step-dot.wizard-step,
.step-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(0, 234, 255, 0.35);
    padding: 8px 12px;
    color: #8bb3c4;
    background: rgba(10, 14, 26, 0.6);
    box-shadow: 0 0 10px rgba(0, 234, 255, 0.25);
    transition: 0.3s ease;
}

.step-dot.wizard-step.active,
.step-dot.active {
    background: rgba(0, 234, 255, 0.2);
    border-color: #00eaff;
    box-shadow: 0 0 25px rgba(0, 234, 255, 0.6);
    color: #00eaff;
}

.step-dot.wizard-step.completed,
.step-dot.completed {
    border-color: rgba(0, 234, 255, 0.5);
    color: #00eaff;
    position: relative;
}

.step-dot.wizard-step.completed::before,
.step-dot.completed::before {
    content: '✓';
    color: #00eaff;
    text-shadow: 0 0 8px rgba(0, 234, 255, 0.8);
    font-size: 1.2rem;
}

.navigation-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    gap: 20px;
}

.navigation-buttons .holo-btn {
    flex: 1;
    margin-top: 0;
}

.step-content {
    color: #cfefff;
    min-height: 300px;
}

.step-content h1,
.step-content h2 {
    color: #00eaff;
    text-shadow: 0 0 20px rgba(0, 234, 255, 0.6);
    margin-bottom: 20px;
}

.step-content p {
    color: #cfefff;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Ensure form elements in onboarding use holo styling */
.step-content input,
.step-content select,
.step-content textarea {
    width: 100%;
    padding: 12px 18px;
    margin-bottom: 18px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(0, 234, 255, 0.3);
    color: #cfefff;
    border-radius: 6px;
    transition: 0.25s;
    font-family: inherit;
    font-size: 0.95rem;
    box-sizing: border-box;
}

.step-content input:focus,
.step-content select:focus,
.step-content textarea:focus {
    border-color: #00eaff;
    box-shadow: 0 0 18px rgba(0, 234, 255, 0.4);
    outline: none;
    background: rgba(0, 0, 0, 0.5);
}

