.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.auth-modal.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.auth-card {
    position: relative;
    z-index: 10000;
    background: #1e293b;
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.7);
    pointer-events: auto;
}

.auth-card h2 {
    color: #38bdf8;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.auth-input-group {
    margin-bottom: 1rem;
    text-align: left;
}

.auth-input-group label {
    display: block;
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.auth-input-group input {
    width: 100%;
    padding: 0.8rem;
    border-radius: 8px;
    border: 1px solid #334155;
    background: #0f172a;
    color: white;
    box-sizing: border-box;
}

.auth-btn-group {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.auth-btn {
    flex: 1;
    padding: 0.8rem;
    border-radius: 8px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-login {
    background: #38bdf8;
    color: #0f172a;
}

.btn-register {
    background: #334155;
    color: white;
}

.auth-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.auth-msg {
    margin-top: 1rem;
    font-size: 0.9rem;
    min-height: 1.2em;
}

.auth-msg.error { color: #f87171; }
.auth-msg.success { color: #4ade80; }

.auth-status-tag {
    font-family: monospace;
    font-size: 0.7rem;
    color: #64748b;
    margin-top: 1rem;
    display: block;
}

.auth-nav-btn {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.7rem 1.5rem;
    background: var(--accent-color, #38bdf8);
    color: #0f172a;
    border: 2px solid var(--accent-color, #38bdf8);
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
    z-index: 1100;
}

.auth-nav-btn:hover {
    color: #fff;
    background: #2563eb;
    border-color: #2563eb;
    transform: translateY(-2px) translateX(0);
}

.auth-nav-btn.logged-in {
    background: rgba(255,255,255,0.1);
    color: #a0a0b8;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: none;
    font-weight: normal;
}

.auth-nav-btn.logged-in:hover {
    color: #38bdf8;
    border-color: #38bdf8;
}
