.auth-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 420px;
    padding: 20px;
    z-index: 100;
}

.auth-box {
    background: linear-gradient(
        135deg,
        rgba(28, 30, 40, 0.85) 0%,
        rgba(35, 37, 49, 0.95) 100%
    );
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 
        0 8px 32px 0 rgba(14, 13, 20, 0.37),
        inset 0 0 32px rgba(139, 127, 219, 0.05),
        0 0 2px rgba(156, 175, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 0 15px rgba(149, 138, 255, 0.3);
    margin-bottom: 0.5rem;
}

.neural-text {
    color: rgba(189, 200, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.auth-tabs {
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1rem;
}

.tab-btn {
    background: rgba(139, 127, 219, 0.1);
    border: 1px solid rgba(156, 175, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
    padding: 0.5rem 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: rgba(139, 127, 219, 0.2);
    border-color: rgba(156, 175, 255, 0.3);
    color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 15px rgba(139, 127, 219, 0.1);
}

.auth-forms {
    background: rgba(20, 22, 30, 0.5);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.1),
        0 4px 8px rgba(10, 10, 15, 0.2);
}

.auth-forms form {
    display: none;
}

.auth-forms form.active {
    display: block;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.form-group input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(139, 127, 219, 0.4);
    box-shadow: 0 0 15px rgba(139, 127, 219, 0.1);
}

.form-group.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-group.split input {
    width: 100%;
    min-width: 0; /* Fix for input overflow */
}

.auth-links {
    text-align: center;
    margin-top: 1rem;
}

.auth-links a {
    color: rgba(189, 200, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.auth-links a:hover {
    color: rgba(189, 200, 255, 0.9);
    text-shadow: 0 0 10px rgba(139, 127, 219, 0.3);
}

.password-strength {
    height: 3px;
    margin-top: 5px;
    background: linear-gradient(to right,
        rgba(255, 0, 0, 0.5) 0%,
        rgba(255, 255, 0, 0.5) 50%,
        rgba(0, 255, 0, 0.5) 100%
    );
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.quantum-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(
        135deg,
        rgba(139, 127, 219, 0.2) 0%,
        rgba(156, 175, 255, 0.2) 100%
    );
    border: 1px solid rgba(156, 175, 255, 0.3);
    border-radius: 4px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.quantum-btn:hover {
    background: linear-gradient(
        135deg,
        rgba(139, 127, 219, 0.3) 0%,
        rgba(156, 175, 255, 0.3) 100%
    );
    box-shadow: 0 0 20px rgba(139, 127, 219, 0.2);
    transform: translateY(-1px);
}

#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.quantum-form {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.quantum-form input {
    width: 100%;
    padding: 0.8rem;
    margin: 0.5rem 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.quantum-form button {
    width: 100%;
    padding: 0.8rem;
    margin-top: 1rem;
    border: none;
    border-radius: 4px;
    background: #2c3e50;
    color: white;
    cursor: pointer;
    transition: background 0.3s;
}

.quantum-form button:hover {
    background: #34495e;
}