/* DragonFire Portal - UNIFIED CSS */
/* Single CSS file for ALL login/register/onboarding pages */

/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');

/* CSS Variables */
:root {
    --phi: 1.618033988749895;
    --transition-time: calc(var(--phi) * 1s);
    --electric-purple: #7f5af0;
    --orange-red: #ff6b35;
    --golden-yellow: #ffcc02;
    --teal-blue: #4ecdc4;
    --dark-blue: #1e2a78;
}

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

/* HTML and body setup for app-like feel */
html {
    height: 100%;
    overflow: hidden;
}

/* UNIFIED BACKGROUND - App-like viewport constraints */
body {
    background: linear-gradient(135deg, #0a0a1a, #1a1a2e, #2a1a3e);
    background-attachment: fixed;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    color: #ffffff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Elemental Body Background for register page */
.elemental-body {
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a2e 50%, #0a0a1a 100%);
    min-height: 100vh;
    position: relative;
}

/* Quantum background animation - UNIFIED */
body::before,
.elemental-bg {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(127, 90, 240, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 60% 40%, rgba(78, 205, 196, 0.05) 0%, transparent 50%);
    animation: backgroundPulse 8s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes backgroundPulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* Desktop Layout Control - show desktop layout on wide screens regardless of orientation */
@media (min-width: 1025px) {
    .elemental-form {
        display: none !important;
    }
    .desktop-layout {
        display: flex !important;
    }
    .portrait-skip {
        display: none !important;
    }
}

/* Mobile/tablet layout - show mobile layout on small screens */
@media (max-width: 1024px) {
    .desktop-layout {
        display: none !important;
    }
    .elemental-form {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 0 1rem !important;
        transform: translateY(-5vh) !important; /* Account for bottom menu overlay */
    }
    
    /* MOBILE APP OPTIMIZATION - Hide hero images BUT keep DragonFire logo */
    .elemental-form .logo-container img:not(.logo-small):not([alt*="DragonFire"]) {
        display: none !important;
    }
    
    /* Clean mobile spacing - remove conflicting margins */
    .onboarding-card {
        padding: 1.25rem !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 350px !important;
    }
    
    .form-container {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Smaller main title on mobile */
    .main-title {
        font-size: clamp(1.5rem, 6vw, 2rem) !important;
        margin-bottom: 0.75rem !important;
    }
}

/* DragonFire Logo - Smooth Responsive Scaling Without Jumps */
img[src*="dragonfire-logo-new"],
img[alt*="DragonFire Logo"],
.logo-small {
    width: clamp(100px, 12vw, 120px) !important;
    height: auto !important;
    margin: 0.2rem auto 0.4rem auto !important;
    display: block !important;
    object-fit: contain !important;
}

/* Desktop split-screen layout - App-like viewport */
.desktop-layout {
    display: none; /* Default hidden, media query will show */
    height: 100vh;
    width: 100vw;
    flex-direction: row;
    position: fixed;
    top: 0;
    left: 0;
    overflow: hidden;
}

/* Left panel - Image and quote */
.desktop-left-panel,
.desktop-left {
    width: 50%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
}

.desktop-quote-container {
    max-width: 400px;
    text-align: center;
}

.desktop-quote-container blockquote {
    color: rgba(255, 255, 255, 0.8);
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 300;
    line-height: 1.7;
    margin: 0;
    font-style: italic;
}

/* Right panel - Forms */
.desktop-right-panel,
.desktop-right {
    width: 50%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    overflow: hidden;
}

.desktop-login-container,
.onboarding-card {
    background: transparent;
    border: none;
    border-radius: 24px;
    padding: clamp(1rem, 3vh, 2rem);
    text-align: center;
    animation: slideIn 0.8s ease-out;
    max-width: min(450px, 90vw);
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

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

/* UNIFIED LOGO STYLING */
.desktop-login-container img,
img[alt="DragonFire Logo"] {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.logo-container {
    text-align: center;
    margin-bottom: 1rem;
}

/* UNIFIED TITLE STYLING - All titles get gradient */
.desktop-login-title,
.main-title,
.desktop-title,
.desktop-form-title,
.mobile-landscape-title,
.mobile-landscape-form-title {
    background: linear-gradient(45deg, #ffcc02, #ff6b35) !important;
    background: linear-gradient(45deg, var(--golden-yellow), var(--orange-red)) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* Title specific sizes - App-like responsive scaling */
.main-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: bold;
    margin-bottom: clamp(0.3rem, 1vh, 0.5rem);
}

.desktop-login-title {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    margin-bottom: clamp(0.8rem, 2vh, 1.5rem);
}

.desktop-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: bold;
    margin-bottom: clamp(0.5rem, 2vh, 1rem);
    text-align: center;
}

.desktop-form-title {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    margin-bottom: clamp(0.8rem, 2vh, 1.5rem);
}

.mobile-landscape-title {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: bold;
    margin-bottom: clamp(0.5rem, 2vh, 1rem);
    text-align: center;
    display: none;
}

.mobile-landscape-form-title {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    margin-bottom: clamp(0.8rem, 2vh, 1.5rem);
    display: none;
}

/* Subtitle styling - App-like responsive */
.subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    margin-bottom: clamp(0.5rem, 1vh, 0.75rem);
    line-height: 1.4;
    max-width: 90%;
}

/* UNIFIED FORM ELEMENTS - App-like scaling */
.form-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 0;
    position: relative;
}

.elemental-form {
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

/* SERVICE GRID - Social buttons */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin: 0 auto 1.5rem auto;
    max-width: 300px;
}

.platform-btn {
    min-height: 60px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    flex-direction: column;
    gap: 0.5rem;
}

.platform-btn:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.platform-btn svg {
    width: 32px;
    height: 32px;
}

/* FORM INPUTS & BUTTONS - App-like responsive scaling */
.form-input,
.elemental-input,
.onboarding-input {
    width: 100%;
    padding: clamp(0.75rem, 2vh, 1rem);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    margin-bottom: clamp(0.5rem, 2vh, 1rem);
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
}

.form-input:focus,
.elemental-input:focus {
    outline: none;
    border-color: var(--electric-purple);
    box-shadow: 0 0 0 2px rgba(127, 90, 240, 0.2);
}

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

.btn-primary {
    width: 100%;
    background: linear-gradient(45deg, var(--electric-purple), var(--orange-red));
    border: none;
    color: white;
    padding: clamp(0.75rem, 2vh, 1rem);
    border-radius: 12px;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: clamp(0.5rem, 2vh, 1rem);
    max-width: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(127, 90, 240, 0.3);
}

.btn-secondary {
    width: 100%;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.8);
    padding: 1rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.5);
}

/* UNIFIED LINKS & BADGES */
.desktop-login-link,
.skip-link-container {
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    text-align: center;
}

.desktop-login-link a,
.skip-link-container a {
    color: #4285F4;
    text-decoration: none;
    font-weight: 600;
}

.desktop-security-badge {
    margin-top: 2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.desktop-security-badge svg {
    color: #7f5af0;
}

.desktop-security-badge span {
    font-size: 0.9rem;
    color: #7f5af0;
    line-height: 1;
    font-weight: 300;
    font-style: italic;
}

.login-link-text {
    color: rgba(255, 255, 255, 0.7);
}

/* Loading animation */
.loader {
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid var(--electric-purple);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* MOBILE RESPONSIVE */
@media (max-width: 1024px) {
    .desktop-layout {
        display: none;
    }
    
    .mobile-layout {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100vh;
        padding: 1rem;
    }
}

.mobile-layout {
    display: none;
}

/* Extra small screens */
@media (max-width: 480px) {
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        max-width: 240px;
    }
    
    /* Mobile logo sizing */
    .elemental-form img[alt="DragonFire Logo"],
    .desktop-login-container img {
        width: 50px !important;
        height: 50px !important;
    }
}

/* ONBOARDING STEP NAVIGATION - Clean 3 Circle Icons Only */
.step-navigation {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 15, 30, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 2rem;
    display: block;
    z-index: 1000;
}

.step-container {
    max-width: 300px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.step-connector {
    width: 30px;
    height: 2px;
    transition: all 0.3s ease;
}

/* Step Bar 1 - Onboarding 1 (First step active) */
.step-bar-1 .step-icon:nth-child(1) {
    background: var(--orange-red);
    color: white;
}

.step-bar-1 .step-icon:nth-child(3),
.step-bar-1 .step-icon:nth-child(5) {
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: rgba(255, 255, 255, 0.9);
}

.step-bar-1 .step-connector:nth-child(2),
.step-bar-1 .step-connector:nth-child(4) {
    background: rgba(255, 255, 255, 0.4);
}

/* Step Bar 2 - Onboarding 2 (First two steps completed/active) */
.step-bar-2 .step-icon:nth-child(1) {
    background: #4caf50;
    color: white;
}

.step-bar-2 .step-icon:nth-child(3) {
    background: var(--orange-red);
    color: white;
}

.step-bar-2 .step-icon:nth-child(5) {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
}

.step-bar-2 .step-connector:nth-child(2) {
    background: #4caf50;
}

.step-bar-2 .step-connector:nth-child(4) {
    background: rgba(255, 255, 255, 0.2);
}

/* Step Bar 3 - Onboarding 3 (All steps completed) */
.step-bar-3 .step-icon:nth-child(1),
.step-bar-3 .step-icon:nth-child(3) {
    background: #4caf50;
    color: white;
}

.step-bar-3 .step-icon:nth-child(5) {
    background: var(--orange-red);
    color: white;
}

.step-bar-3 .step-connector:nth-child(2),
.step-bar-3 .step-connector:nth-child(4) {
    background: #4caf50;
}

/* ONBOARDING SPECIFIC STYLES */
.title-svg-container {
    text-align: center;
    margin-bottom: 20px;
}

.title-svg {
    max-width: 100%;
}

/* REGISTER PAGE SPECIFIC CLASSES */
.register-form-container {
    background: rgba(15, 15, 30, 0.95);
    border: 1px solid rgba(127, 90, 240, 0.2);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    padding: 2rem 1.5rem;
    animation: slideIn 0.5s ease-out;
}

.register-logo-container {
    text-align: center;
    margin: 0 0 0.5rem 0;
}

.register-logo {
    width: 97px;
    height: 97px;
    object-fit: contain;
    border-radius: 8px;
}

.element-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(50px, 75px));
    gap: clamp(0.4rem, 1.5vw, 0.6rem);
    max-width: min(400px, 85vw);
    margin: clamp(0.5rem, 2vh, 1rem) auto clamp(1rem, 3vh, 1.5rem) auto;
    justify-content: center;
    padding: 0 clamp(0.5rem, 1.5vw, 0.75rem);
    box-sizing: border-box;
    width: 100%;
}

/* Responsive element grid for smaller screens */
@media (max-width: 480px) {
    .element-grid {
        grid-template-columns: repeat(5, minmax(45px, 60px));
        gap: 0.4rem;
        max-width: min(320px, 80vw);
        padding: 0 0.5rem;
    }
}

/* Tablet responsive */
@media (max-width: 768px) and (min-width: 481px) {
    .element-grid {
        grid-template-columns: repeat(5, minmax(50px, 65px));
        gap: 0.5rem;
        max-width: min(350px, 82vw);
    }
}

.social-platforms {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 280px;
    margin: 0 auto;
}

/* Service option container */
.service-option {
    position: relative;
    cursor: pointer;
}

/* Hide checkboxes */
.service-checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Selectable button states */
.selectable-btn {
    transition: all 0.3s ease;
    position: relative;
}

.selectable-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
}

.selectable-btn.selected {
    background: rgba(255, 107, 53, 0.2) !important;
    border-color: #ff6b35 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.selectable-btn.selected::after {
    content: "✓";
    position: absolute;
    top: 4px;
    right: 4px;
    background: #ff6b35;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* Navigation buttons */
.onboarding-navigation {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: clamp(1.5rem, 4vh, 2.5rem);
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}

.onboarding-navigation .btn-primary {
    width: 100% !important;
    max-width: 280px !important;
    min-width: 280px !important;
}

.form-switch {
    margin: 0.75rem 0 17.5px 0;
    text-align: center;
}

.form-switch p {
    color: rgba(255, 255, 255, 0.7);
}

.switch-link {
    color: #4285F4;
    text-decoration: none;
    font-weight: 600;
}

.security-badge-container {
    text-align: center;
    margin: 17.5px 0 0 0;
}

.desktop-register-container {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.desktop-register-logo {
    width: 104px;
    height: 104px;
    object-fit: contain;
}

.input-wrapper {
    position: relative;
}

.input-arrow-btn,
.desktop-arrow-btn {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    background: #28a745;
    border: none;
    cursor: pointer;
    padding: 0 clamp(12px, 2vw, 16px);
    border-radius: 0 12px 12px 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.name-message {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    text-align: center;
    min-height: 20px;
}

/* Mobile portrait optimizations */
@media (max-width: 767px) and (orientation: portrait) {
    .elemental-form img[alt="DragonFire Logo"] {
        width: 75px !important;
        height: 75px !important;
        margin-bottom: 0.25rem !important;
    }
}

/* iPad landscape */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .elemental-form img[alt="DragonFire Logo"] {
        width: 155px !important;
        height: 155px !important;
    }
}

/* REGISTER PAGE - ADDITIONAL CLASSES FOR INLINE CSS CLEANUP */

/* Element Selection Styles - Amazing Button Styling */
.element-option {
    display: block;
    cursor: pointer;
}

.element-option input[type="radio"] {
    display: none;
}

.element-card {
    padding: 0.75rem 0.5rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 75px;
    max-height: 90px;
    position: relative;
    backdrop-filter: blur(10px);
    width: 100%;
    box-sizing: border-box;
}

.element-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.2);
}

/* Element-specific colors and selection states */
.element-card.fire:hover,
.element-option input[value="fire"]:checked + .element-card.fire {
    border-color: #ff6b35;
    background: rgba(255, 107, 53, 0.15);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

.element-card.water:hover,
.element-option input[value="water"]:checked + .element-card.water {
    border-color: #4ecdc4;
    background: rgba(78, 205, 196, 0.15);
    box-shadow: 0 8px 25px rgba(78, 205, 196, 0.4);
}

.element-card.earth:hover,
.element-option input[value="earth"]:checked + .element-card.earth {
    border-color: #52b788;
    background: rgba(82, 183, 136, 0.15);
    box-shadow: 0 8px 25px rgba(82, 183, 136, 0.4);
}

.element-card.air:hover,
.element-option input[value="air"]:checked + .element-card.air {
    border-color: #a8dadc;
    background: rgba(168, 218, 220, 0.15);
    box-shadow: 0 8px 25px rgba(168, 218, 220, 0.4);
}

.element-card.aether:hover,
.element-option input[value="aether"]:checked + .element-card.aether {
    border-color: #7f5af0;
    background: rgba(127, 90, 240, 0.15);
    box-shadow: 0 8px 25px rgba(127, 90, 240, 0.4);
}

/* Selected state - glowing effect */
.element-option input:checked + .element-card {
    transform: translateY(-2px);
    animation: elementGlow 2s ease-in-out infinite alternate;
}

@keyframes elementGlow {
    from {
        box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
    }
    to {
        box-shadow: 0 12px 35px rgba(255, 107, 53, 0.6);
    }
}

.element-icon {
    font-size: 2rem;
    margin-bottom: 0.25rem;
    transition: transform 0.3s ease;
    line-height: 1;
}

.element-card:hover .element-icon {
    transform: scale(1.05);
}

.element-name {
    color: #ffffff !important;
    font-weight: 500 !important;
    font-size: 0.8rem !important;
    text-align: center !important;
    display: block !important;
    margin-top: 2px !important;
    transition: color 0.3s ease;
    line-height: 1.1;
}

/* Responsive icon and text sizing */
@media (max-width: 480px) {
    .element-icon {
        font-size: 1.6rem;
        margin-bottom: 0.2rem;
    }
    
    .element-name {
        font-size: 0.7rem !important;
        margin-top: 1px !important;
    }
}

@media (max-width: 768px) and (min-width: 481px) {
    .element-icon {
        font-size: 1.8rem;
        margin-bottom: 0.2rem;
    }
    
    .element-name {
        font-size: 0.75rem !important;
    }
}

/* Title SVG containers */
.title-svg-container {
    text-align: center;
    margin: 0.6rem 0 1rem 0;
}

.title-svg-container.step-title {
    margin: 0 0 1rem 0;
}

.title-svg-container.connect-title {
    margin: 0 0 1.5rem 0;
}

.title-svg {
    max-width: 100%;
}

/* Form styling */
.form-group {
    margin-bottom: 1rem;
}

.input-wrapper {
    position: relative;
}

/* Step containers */
.registration-step {
    display: none;
}

.registration-step.active {
    display: block;
}

/* Element container overrides */
.elemental-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1rem;
}

.elemental-content {
    width: 100%;
    max-width: 500px;
}

.elemental-header {
    text-align: center;
    margin-bottom: 1rem;
}

/* Desktop Layout specific for register page */
.desktop-revolution-image {
    text-align: center;
    margin-bottom: 1rem;
}

.desktop-revolution-image img {
    width: 283px;
    height: 283px;
    object-fit: contain;
}

.desktop-join-title {
    text-align: center;
    margin-bottom: 0.5rem;
}

.desktop-quote-section {
    text-align: center;
    max-width: 500px;
    margin-top: 0.25rem;
}

.desktop-quote-section p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.3rem;
    font-weight: 100;
    line-height: 1.7;
    margin: 0;
    font-style: italic;
}

.auth-result {
    margin-top: 1rem;
}

/* Desktop Element Selection Styles */
.desktop-register-logo-container {
    text-align: center;
    margin-bottom: 0.25rem;
}

.desktop-register-logo {
    width: 104px;
    height: 104px;
    object-fit: contain;
}

.desktop-element-title {
    text-align: center;
    margin-bottom: 0.25rem;
}

.desktop-registration-step {
    display: none;
}

.desktop-registration-step.active {
    display: block;
}

.desktop-element-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
}

.desktop-element-row {
    display: flex;
    gap: 0.75rem;
    max-width: 500px;
    width: 100%;
    justify-content: space-between;
}

.desktop-element-option {
    cursor: pointer;
    position: relative;
    flex: 1;
}

.desktop-element-option input {
    display: none;
}

.desktop-element-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.75rem;
    text-align: center;
    transition: all 0.3s ease;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.desktop-element-btn span {
    font-size: 1.75rem;
}

.element-tooltip {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    pointer-events: none;
}

.desktop-dragon-name-title {
    text-align: center;
    margin: 1rem 0 1rem 0;
}

/* ONBOARDING SPECIFIC CSS CLASSES - Match element grid width */
.onboarding-input-container {
    margin-bottom: clamp(0.8rem, 2vh, 1.5rem);
    position: relative;
    max-width: min(400px, 85vw);
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 0 clamp(0.5rem, 1.5vw, 0.75rem);
    box-sizing: border-box;
    height: clamp(56px, 8vh, 64px);
}

.onboarding-input {
    width: 100%;
    height: 100%;
    padding: 0 3rem 0 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #ffffff;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    box-sizing: border-box;
    line-height: 1.2;
    display: flex;
    align-items: center;
}

/* Responsive input container for smaller screens */
@media (max-width: 480px) {
    .onboarding-input-container {
        max-width: min(320px, 80vw);
        padding: 0 0.5rem;
        height: clamp(48px, 7vh, 56px);
    }
}

@media (max-width: 768px) and (min-width: 481px) {
    .onboarding-input-container {
        max-width: min(350px, 82vw);
        height: clamp(52px, 7.5vh, 60px);
    }
}

.skip-link-container {
    text-align: center;
    margin-top: 1rem;
}

.skip-link-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.skip-link {
    color: #4285F4;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.processing-title {
    color: var(--golden-yellow);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

/* LOGO SIZING - Duplicate removed, consolidated above at line 132 */

/* MUSIC LOGO - Slightly bigger for music-themed pages */
.logo-music {
    width: clamp(75px, 10vw, 100px) !important;
    height: clamp(75px, 10vw, 100px) !important;
    object-fit: contain !important;
    margin-bottom: clamp(0.5rem, 1vh, 1rem) !important;
}

/* DESKTOP HERO IMAGES - Bigger and more prominent */
.desktop-hero-image {
    width: clamp(300px, 35vw, 450px) !important;
    height: clamp(300px, 35vh, 450px) !important;
    object-fit: contain !important;
    margin-bottom: clamp(1rem, 3vh, 2rem) !important;
    max-width: 95%;
    max-height: 60vh;
}

/* SIMPLE LAYOUT CLASSES */
.center {
    text-align: center;
}

.center.margin-bottom {
    margin-top: clamp(1.5rem, 4vh, 2.5rem);
}

.margin-bottom {
    margin-bottom: 1rem;
}

.margin-bottom-small {
    margin-bottom: 0.25rem;
}

.container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.text-muted {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.link-blue {
    color: #4285F4;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.title-large {
    color: var(--golden-yellow);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.quote-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.3rem;
    font-weight: 100;
    line-height: 1.7;
    margin: 0;
    font-style: italic;
    text-align: center;
}

/* ERROR MESSAGES AND VALIDATION STYLES */
.error-container {
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
}

.error-message {
    color: #ff4757;
    font-size: 0.85rem;
    margin: 0.25rem 0;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid rgba(255, 71, 87, 0.2);
    border-radius: 6px;
    display: none;
}

.error-message.show {
    display: block;
    animation: errorSlideIn 0.3s ease-out;
}

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

/* BUTTON STATES - Dynamic validation feedback */
.input-arrow-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.02) !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
}

.input-arrow-btn.enabled {
    opacity: 1;
    cursor: pointer;
    background: rgba(46, 213, 115, 0.15) !important;
    border-color: rgba(46, 213, 115, 0.3) !important;
    box-shadow: 0 0 10px rgba(46, 213, 115, 0.2) !important;
}

.input-arrow-btn.enabled svg path {
    stroke: #2ed573 !important;
}

/* INPUT VALIDATION STATES */
.onboarding-input.invalid {
    border-color: #ff4757 !important;
    box-shadow: 0 0 0 2px rgba(255, 71, 87, 0.1) !important;
}

.onboarding-input.valid {
    border-color: #2ed573 !important;
    box-shadow: 0 0 0 2px rgba(46, 213, 115, 0.1) !important;
}

/* REGISTRATION STEP 2 - OAUTH STYLES */
.user-info-container {
    margin-bottom: 1.5rem;
    padding: 0.5rem 0;
    text-align: center;
}

.element-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--golden-yellow);
}

.oauth-title {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-align: center;
}

.oauth-subtitle {
    font-size: 1.25rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-align: center;
}

.platform-name {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.registration-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1.5rem 0 1rem 0;
}

.back-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    cursor: pointer;
}

.back-link:hover {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
}