* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    max-width: 500px;
    width: 100%;
    background: rgba(45,45,45,0.9);
    border-radius: 30px;
    padding: 40px 30px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    margin-bottom: 100px;
}

.login-container h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #4CAF50;
    font-size: 28px;
}

/* Гостевой режим */
.guest-section {
    background: rgba(0,0,0,0.3);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid #4CAF50;
}

.guest-section h2 {
    color: #4CAF50;
    margin-bottom: 15px;
    font-size: 20px;
}

.guest-id-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #333;
    border-radius: 12px;
    padding: 8px 12px;
    margin: 15px 0;
    border: 1px solid #555;
}

.guest-id {
    flex: 1;
    font-family: monospace;
    font-size: 16px;
    color: #4CAF50;
    font-weight: 600;
    word-break: break-all;  /* переносит длинный ID */
}

.copy-btn {
    flex-shrink: 0;  /* не даёт кнопке сжиматься */
    background: rgba(76,175,80,0.2);
    border: 2px solid #4CAF50;
    border-radius: 8px;
    padding: 8px 16px;
    color: #4CAF50;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    white-space: nowrap;
}

.copy-btn:hover {
    background: rgba(76,175,80,0.3);
    transform: scale(1.05);
}

.transfer-section {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.transfer-input {
    flex: 1;
    background: #333;
    border: 1px solid #555;
    border-radius: 8px;
    padding: 12px;
    color: white;
    font-size: 14px;
}

.transfer-input:focus {
    outline: none;
    border-color: #4CAF50;
}

.transfer-btn {
    background: #2196F3;
    border: none;
    border-radius: 8px;
    padding: 0 20px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.transfer-btn:hover {
    background: #1976D2;
    transform: scale(1.02);
}

.pending-requests {
    background: rgba(76,175,80,0.1);
    border: 1px solid #4CAF50;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 30px;
}

.pending-requests h3 {
    color: #4CAF50;
    margin-bottom: 15px;
    font-size: 18px;
}

.request-card {
    background: rgba(0,0,0,0.3);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
}

.request-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.request-time {
    color: #888;
    font-size: 12px;
}

.request-actions {
    display: flex;
    gap: 12px;
}

.request-confirm {
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 20px;
    cursor: pointer;
    font-weight: 600;
}

.request-reject {
    background: #f44336;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 20px;
    cursor: pointer;
    font-weight: 600;
}

/* Разделитель */
.divider {
    text-align: center;
    margin: 30px 0;
    color: #888;
    position: relative;
}

.divider::before, .divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background: #444;
}

.divider::before { left: 0; }
.divider::after { right: 0; }

.login-btn {
    width: 100%;
    background: linear-gradient(45deg, #2196F3, #1976D2);
    border: none;
    border-radius: 30px;
    padding: 16px;
    color: white;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    margin: 10px 0;
}

/* Премиум */
.premium-section {
    background: rgba(76,175,80,0.1);
    border-radius: 20px;
    padding: 20px;
    border: 2px solid #4CAF50;
}

.premium-section h2 {
    color: #4CAF50;
    margin-bottom: 20px;
    font-size: 22px;
}

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    color: #ccc;
    font-size: 14px;
}

.input-group input {
    width: 100%;
    background: #333;
    border: 1px solid #555;
    border-radius: 8px;
    padding: 12px;
    color: white;
    font-size: 16px;
}

.input-group input:focus {
    outline: none;
    border-color: #4CAF50;
}

.premium-btn {
    width: 100%;
    background: linear-gradient(45deg, #4CAF50, #45a049);
    border: none;
    border-radius: 30px;
    padding: 16px;
    color: white;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    margin: 20px 0;
    transition: all 0.2s;
    box-shadow: 0 10px 30px rgba(76,175,80,0.3);
}

.premium-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(76,175,80,0.4);
}

.feature-list {
    list-style: none;
    margin: 20px 0;
}

.feature-list li {
    margin: 10px 0;
    color: #aaa;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-list li::before {
    content: '✓';
    color: #4CAF50;
    font-weight: bold;
    font-size: 18px;
}

.hint {
    color: #888;
    font-size: 12px;
    text-align: center;
}

/* Нижняя панель */
.bottom-panel {
    background: rgba(0,0,0,0.98);
    backdrop-filter: blur(30px);
    border-top: 2px solid #444;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    line-height: 1.2;
    padding: 5px;
}

.home {
    background: rgba(76,175,80,0.3);
    color: #4CAF50;
    border: 2px solid #4CAF50;
}

.settings {
    background: linear-gradient(45deg, #2196F3, #1976D2);
    color: white;
    border: 2px solid #2196F3;
}

.user {
    color: #ccc;
    font-size: 16px;
    background: rgba(255,255,255,0.1);
    padding: 8px 20px;
    border-radius: 20px;
}

/* Мобильная адаптация для страницы логина */
@media (max-width: 768px) {
    /* Контейнер с полем ввода и кнопкой */
    .transfer-section {
        flex-direction: column;  /* меняем горизонтальное расположение на вертикальное */
        gap: 10px;
    }
    
    /* Кнопка переноса теперь на всю ширину */
    .transfer-btn {
        width: 100%;
        padding: 15px 0;
        border-radius: 8px;
        font-size: 18px;
    }
    
    /* Поле ввода тоже на всю ширину */
    .transfer-input {
        width: 100%;
        padding: 15px;
        font-size: 16px;
    }
    
    /* Увеличиваем кнопки для удобного нажатия пальцем */
    .copy-btn, .premium-btn {
        min-height: 48px;
        font-size: 16px;
    }
    
    /* Немно отодвигаем от низа */
    .login-container {
        margin-bottom: 120px;
    }

    .guest-id-box {
        flex-wrap: wrap;  /* разрешаем перенос */
    }
    
    .guest-id {
        width: 100%;      /* ID на всю ширину */
        margin-bottom: 8px;
    }
    
    .copy-btn {
        width: 100%;      /* кнопка на всю ширину */
    }

    .request-info {
        flex-direction: column;
    }
    
    .request-actions {
        flex-direction: column;
    }
    
    .request-confirm, .request-reject {
        width: 100%;
        padding: 12px;
    }

}

/* Адаптация */
@media (max-width: 480px) {
    .login-container {
        padding: 30px 10px 10px 10px;
    }
    
    .guest-id {
        font-size: 14px;
    }
}

.user-id {
    color: #ccc;
    font-size: 14px;
    background: rgba(255,255,255,0.1);
    padding: 8px 20px;
    border-radius: 20px;
}