:root {
    --neon-pink: #ff2a6d;
    --neon-orange: #ff9e4f;
    --neon-blue: #05d9e8;
    --dark-bg: #18181c;
    --darker-bg: #121216;
    --gradient: linear-gradient(45deg, var(--neon-pink), var(--neon-orange));
}

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

body {
    font-family: 'Raleway', sans-serif;
    background-color: var(--dark-bg);
    color: #fff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 15% 30%, rgba(255, 42, 109, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 85% 70%, rgba(255, 158, 79, 0.05) 0%, transparent 40%);
}

.app-container {
    width: 100%;
    max-width: 1200px;
    position: relative;
}

/* Splash Screen */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--darker-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.5s ease;
}

.logo-container {
    position: relative;
    text-align: center;
}

.neon-frame {
    position: absolute;
    top: -30px;
    left: -30px;
    width: calc(100% + 60px);
    height: calc(100% + 60px);
    border: 1px solid transparent;
    border-image: var(--gradient);
    border-image-slice: 1;
    box-shadow: 0 0 20px var(--neon-pink), 0 0 30px var(--neon-orange);
    opacity: 0.7;
    border-radius: 4px;
    animation: pulse 2s infinite alternate;
}

.logo-ascii {
    font-family: 'Share Tech Mono', monospace;
    font-size: 12px;
    white-space: pre;
    line-height: 0.85;
    color: white;
    text-shadow: 0 0 10px var(--neon-pink);
    letter-spacing: -0.05em;
    margin-bottom: 20px;
}

.neon-text {
    color: #fff;
    text-shadow: 0 0 5px #fff, 0 0 10px var(--neon-pink), 0 0 15px var(--neon-pink), 0 0 20px var(--neon-pink);
}

.subtitle {
    font-size: 18px;
    color: var(--neon-orange);
    text-shadow: 0 0 10px var(--neon-orange);
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 300;
}

.loader {
    height: 4px;
    width: 80%;
    margin: 20px auto;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.loader-bar {
    height: 100%;
    width: 0;
    background: var(--gradient);
    animation: loading 5s ease forwards;
    box-shadow: 0 0 10px var(--neon-pink);
}

/* Auth Container */
#auth-container {
    display: none;
    width: 90%;
    max-width: 450px;
    margin: 0 auto;
    background-color: rgba(24, 24, 28, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 100;
}

#auth-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
    z-index: 1;
}

/* Tabs */
.tabs {
    display: flex;
    margin-bottom: 30px;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tab {
    flex: 1;
    text-align: center;
    padding: 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: color 0.3s;
    position: relative;
}

.tab.active {
    color: #fff;
}

.tab-indicator {
    position: absolute;
    height: 2px;
    background: var(--gradient);
    bottom: -1px;
    width: 50%;
    transition: transform 0.3s;
    transform: translateX(0);
    box-shadow: 0 0 10px var(--neon-pink);
}

/* Forms */
.auth-page {
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.auth-page.active {
    display: block;
    opacity: 1;
}

.auth-form {
    width: 100%;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
    flex: 1;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.input-wrapper {
    position: relative;
}

.input-wrapper::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s;
}

.input-wrapper input:focus ~ ::after {
    width: 100%;
}

input {
    width: 100%;
    padding: 10px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-family: 'Raleway', sans-serif;
    font-size: 15px;
    transition: all 0.3s;
    outline: none;
}

input:focus {
    border-bottom-color: var(--neon-pink);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 14px;
}

.remember-me {
    display: flex;
    align-items: center;
}

.remember-me input {
    width: auto;
    margin-right: 8px;
}

.forgot-link {
    color: var(--neon-orange);
    text-decoration: none;
    transition: text-shadow 0.3s;
}

.forgot-link:hover {
    text-shadow: 0 0 5px var(--neon-orange);
}

/* Password Strength */
.password-strength {
    margin-top: 8px;
    font-size: 12px;
}

.strength-meter {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin: 5px 0;
    overflow: hidden;
}

.strength-meter .bar {
    height: 100%;
    width: 0;
    transition: width 0.3s, background-color 0.3s;
}

.strength-meter[data-strength="0"] .bar {
    width: 0%;
}

.strength-meter[data-strength="1"] .bar {
    width: 25%;
    background-color: #ff3a3a;
}

.strength-meter[data-strength="2"] .bar {
    width: 50%;
    background-color: #ffa53a;
}

.strength-meter[data-strength="3"] .bar {
    width: 75%;
    background-color: #83ff3a;
}

.strength-meter[data-strength="4"] .bar {
    width: 100%;
    background-color: #3affc4;
}

.strength-text {
    color: rgba(255, 255, 255, 0.6);
    text-align: right;
}

/* Button */
.neon-button {
    position: relative;
    width: 100%;
    padding: 12px;
    background: var(--gradient);
    border: none;
    border-radius: 4px;
    color: white;
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(255, 42, 109, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.neon-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.8s;
}

.neon-button:hover {
    box-shadow: 0 0 20px rgba(255, 42, 109, 0.7);
}

.neon-button:hover::before {
    left: 100%;
}

.form-footer {
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.form-footer a {
    color: var(--neon-pink);
    text-decoration: none;
    font-weight: 600;
    transition: text-shadow 0.3s;
}

.form-footer a:hover {
    text-shadow: 0 0 5px var(--neon-pink);
}

/* Animations */
@keyframes pulse {
    0% {
        opacity: 0.5;
        box-shadow: 0 0 10px var(--neon-pink), 0 0 20px var(--neon-orange);
    }
    100% {
        opacity: 0.8;
        box-shadow: 0 0 20px var(--neon-pink), 0 0 30px var(--neon-orange);
    }
}

@keyframes loading {
    0% { width: 0; }
    20% { width: 20%; }
    50% { width: 40%; }
    70% { width: 60%; }
    80% { width: 80%; }
    100% { width: 100%; }
}

/* Responsive */
@media (max-width: 576px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .logo-ascii {
        font-size: 8px;
    }
    
    #auth-container {
        padding: 20px;
    }
}
