.auth-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.main-mode-toggle {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 5px;
    margin-bottom: 30px;
}

.mode-btn {
    flex: 1;
    padding: 10px;
    border: none;
    background: transparent;
    color: #888;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mode-btn.active {
    background: linear-gradient(135deg, #6e57e0 0%, #ee83e5 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(110, 87, 224, 0.3);
}

.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: thin;
}

.auth-tabs::-webkit-scrollbar {
    height: 4px;
}

.auth-tabs::-webkit-scrollbar-thumb {
    background: rgba(110, 87, 224, 0.5);
    border-radius: 10px;
}

.tab-btn {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 10px;
    color: #ccc;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: #6e57e0;
    color: white;
}

.auth-form {
    display: none;
    animation: fadeIn 0.4s ease;
}

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

#auth-result, #log-result {
    margin-top: 20px;
    max-height: 600px;
    overflow-y: auto;
}

#auth-result::-webkit-scrollbar, #log-result::-webkit-scrollbar {
    width: 6px;
}

#auth-result::-webkit-scrollbar-thumb, #log-result::-webkit-scrollbar-thumb {
    background: rgba(110, 87, 224, 0.3);
    border-radius: 10px;
}

.auth-result-success {
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.2);
}

.auth-result-error {
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.2);
}

.auth-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.auth-status-badge.authorized {
    background: rgba(74, 222, 128, 0.1);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.2);
}

.auth-status-badge.unauthorized {
    background: rgba(248, 113, 113, 0.1);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.2);
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.authorized .status-dot { background-color: #4ade80; box-shadow: 0 0 8px #4ade80; }
.unauthorized .status-dot { background-color: #f87171; }

.logout-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.logout-btn:hover {
    border-color: #f87171;
    color: #f87171;
}
