/* ===== АВТОРИЗАЦИЯ ===== */
.auth-container {
    background: #1e1e24;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    width: 400px;
    max-width: 90%;
}

.auth-logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo-image {
    width: 72px;
    height: 72px;
    display: block;
    margin: 0 auto 8px;
    border-radius: 20px;
    object-fit: contain;
}

.auth-logo h1 {
    color: rgb(151, 0, 178);
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.auth-logo .version {
    color: #666;
    font-size: 12px;
    margin-top: 2px;
}

.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    border-bottom: 2px solid #2a2a32;
}

.tab {
    flex: 1;
    padding: 10px;
    border: none;
    background: none;
    font-size: 16px;
    font-weight: 500;
    color: #888;
    transition: all 0.3s;
    cursor: pointer;
}

.tab.active {
    color: rgb(151, 0, 178);
    border-bottom: 2px solid rgb(151, 0, 178);
}

.auth-form {
    display: none;
    flex-direction: column;
    gap: 12px;
}

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

.auth-form input {
    padding: 12px 16px;
    background: #2a2a32;
    border: 1px solid #3a3a44;
    border-radius: 10px;
    font-size: 14px;
    color: #e8e8e8;
    transition: border-color 0.3s;
}

.auth-form input:focus {
    outline: none;
    border-color: rgb(151, 0, 178);
}

.auth-form input::placeholder {
    color: #666;
}

.auth-form button {
    padding: 12px;
    background: rgb(151, 0, 178);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.3s;
    cursor: pointer;
}

.auth-form button:hover {
    background: rgb(130, 0, 155);
}

.error {
    color: #ef5350;
    font-size: 14px;
    margin-top: 5px;
}

/* ===== СОХРАНЁННЫЕ АККАУНТЫ ===== */
.saved-accounts {
    display: none;
    justify-content: center;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.saved-accounts.has-items {
    display: flex;
}
.saved-account-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: transform 0.2s;
    user-select: none;
    flex-shrink: 0;
    min-width: 64px;
}
.saved-account-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    transition: transform 0.2s, box-shadow 0.2s;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
}
.saved-account-avatar.has-avatar {
    background-color: transparent !important;
}
.saved-account-item:hover .saved-account-avatar {
    transform: scale(1.12);
    box-shadow: 0 0 16px rgba(151, 0, 178, 0.5);
}
.saved-account-username {
    font-size: 11px;
    color: #888;
    max-width: 64px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}
.saved-account-remove {
    position: absolute;
    top: -4px;
    right: 2px;
    width: 18px;
    height: 18px;
    background: #e17076;
    border: 2px solid #1e1e24;
    border-radius: 50%;
    font-size: 10px;
    line-height: 16px;
    text-align: center;
    color: #fff;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    z-index: 2;
}
.saved-account-item:hover .saved-account-remove {
    display: flex;
}

