/* Thronmenders Signup Page Styles - Royal Theme */

/* Root Variables for Consistent Theming */
:root {
    --royal-gold: #FFD700;
    --royal-purple: #663399;
    --royal-blue: #4169E1;
    --royal-deep: #2F1B69;
    --royal-dark: #1A0F2E;
    --neon-green: #00FFAB;
    --neon-blue: #1E90FF;
    --dark-bg: #0A0612;
}

/* Base Body Styling */
body {
    font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--royal-dark) 15%, var(--royal-deep) 25%, #4C2C85 45%, #6B46C1 65%, #553C9A 85%, var(--dark-bg) 100%);
    background-size: 400% 400%;
    background-attachment: fixed;
    animation: gradient 15s ease infinite;
    color: white;
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Gradient Animation */
@keyframes gradient {
    0% { background-position: 0% 50%; }
    25% { background-position: 100% 50%; }
    50% { background-position: 50% 100%; }
    75% { background-position: 0% 50%; }
    100% { background-position: 50% 0%; }
}

/* Header Styling */
#header {
    background: rgba(var(--royal-dark), 0.3);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    transition: all 0.3s ease;
}

/* Logo Styling */
.logo a {
    font-family: 'Space Grotesk', sans-serif;
    text-decoration: none;
}

.neon-text-gold {
    color: var(--royal-gold);
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
}

/* Glassmorphism Effect */
.glassmorphism {
    background: rgba(10, 6, 18, 0.35);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(147, 51, 234, 0.3);
    box-shadow: 0 8px 32px 0 rgba(107, 70, 193, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glassmorphism:hover {
    box-shadow: 0 12px 32px 0 rgba(147, 51, 234, 0.4);
}

/* Navigation Links */
.nav-link {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.nav-link:hover,
.nav-link.active {
    color: white;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #A855F7;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Form Input Styling */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="hidden"] {
    background: rgba(26, 15, 46, 0.6);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: white;
    font-family: 'Sora', sans-serif;
    transition: all 0.3s ease;
    width: 100%;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: var(--neon-green);
    box-shadow: 0 0 15px rgba(0, 255, 171, 0.3);
}

input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Checkbox Styling */
input[type="checkbox"] {
    background: rgba(26, 15, 46, 0.6);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 0.25rem;
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
    accent-color: var(--neon-green);
}

/* Labels */
label {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}

/* Role Toggle Container */
.role-toggle-container {
    background: rgba(26, 15, 46, 0.6);
    border-radius: 0.5rem;
    padding: 0.25rem;
    display: flex;
    max-width: 20rem;
    margin: 0 auto;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

/* Role Toggle Buttons */
.role-toggle {
    flex: 1;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Sora', sans-serif;
}

.role-toggle:hover {
    background: rgba(0, 255, 171, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

.role-toggle.bg-green-500 {
    background: linear-gradient(135deg, var(--neon-green) 0%, #00CC88 100%) !important;
    color: black !important;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 255, 171, 0.3);
}

.role-toggle svg {
    margin-right: 0.5rem;
    width: 1rem;
    height: 1rem;
}

/* Primary Button Styling */
button[type="submit"] {
    background: linear-gradient(135deg, var(--neon-green) 0%, #00CC88 100%);
    color: black;
    font-weight: 700;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    border: none;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 15px rgba(0, 255, 171, 0.3);
    width: 100%;
}

button[type="submit"]:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 255, 171, 0.4);
    background: linear-gradient(135deg, #00E6B8 0%, #00B377 100%);
}

/* Google Signup Button */
#google-signup-btn {
    background: rgba(26, 15, 46, 0.6);
    color: white;
    border: 1px solid rgba(255, 215, 0, 0.2);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Sora', sans-serif;
    width: 100%;
    font-weight: 500;
}

#google-signup-btn:hover {
    background: rgba(26, 15, 46, 0.8);
    border-color: rgba(255, 215, 0, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

#google-signup-btn svg {
    margin-right: 0.5rem;
}

/* Link Styling */
a {
    color: var(--royal-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--neon-blue);
    text-decoration: underline;
}

/* Page Title */
h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: white;
    text-align: center;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Subtitle */
p.text-gray-400 {
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    margin-bottom: 2.5rem;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    margin-bottom: 0.5rem;
}

/* Grid Layout for Name Fields */
.grid.md\:grid-cols-2 {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .grid.md\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Menu Styling */
#mobile-menu {
    background: rgba(26, 15, 46, 0.95);
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#mobile-menu.hidden {
    display: none;
}

/* Mobile Navigation Links */
.mobile-nav-link {
    display: block;
    padding: 0.75rem 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
    text-decoration: none;
}

.mobile-nav-link:hover {
    background-color: rgba(147, 51, 234, 0.15);
    color: #fff;
    border-left-color: #A855F7;
}

/* Footer Styling */
footer {
    background: rgba(0, 0, 0, 0.8);
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    color: rgba(255, 255, 255, 0.6);
}

footer a:hover {
    color: white;
}

/* Divider Styling */
.border-t {
    border-color: rgba(255, 215, 0, 0.2);
}

/* Helper Text */
.text-xs.text-gray-500 {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    .glassmorphism {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .role-toggle-container {
        max-width: 100%;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    body {
        animation: none;
    }
}

/* Focus States for Better Accessibility */
button:focus,
input:focus {
    outline: 2px solid var(--neon-green);
    outline-offset: 2px;
}

/* Loading State for Buttons */
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Validation States */
input.error {
    border-color: #dc2626;
    box-shadow: 0 0 15px rgba(220, 38, 38, 0.3);
}

input.success {
    border-color: var(--neon-green);
    box-shadow: 0 0 15px rgba(0, 255, 171, 0.3);
}
