* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    width: 100%;
    max-width: 1200px;
    padding: 20px;
}

/* Auth Styles */
.auth-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    padding: 40px;
    max-width: 400px;
    margin: 0 auto;
}

.auth-container h1 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 28px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-bottom: 10px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #f0f0f0;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
}

.forgot-password {
    text-align: center;
    margin-top: 15px;
}

.forgot-password a {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
}

.forgot-password a:hover {
    text-decoration: underline;
}

.switch-mode {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.switch-mode p {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.switch-mode a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 10px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.modal-content h2 {
    margin-bottom: 20px;
    color: #333;
}

.close-btn {
    float: right;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    background: none;
    border: none;
}

.close-btn:hover {
    color: #000;
}

/* Language Selection */
.language-selection {
    text-align: center;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    padding: 50px;
    max-width: 500px;
    margin: 0 auto;
}

.language-selection h2 {
    margin-bottom: 30px;
    color: #333;
    font-size: 24px;
}

.language-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.lang-btn {
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    border: 2px solid #667eea;
    background: white;
    color: #667eea;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.lang-btn:hover {
    background: #667eea;
    color: white;
}

/* Dashboard Styles */
.dashboard {
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    font-size: 24px;
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.lang-switcher {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
}

.lang-switcher:hover {
    background: rgba(255, 255, 255, 0.3);
}

.logout-btn {
    background: #ff6b6b;
    border: none;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
}

.logout-btn:hover {
    background: #ff5252;
}

.dashboard-content {
    padding: 40px;
    text-align: center;
}

.dashboard-content h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 20px;
}

.get-iptv-btn {
    padding: 15px 50px;
    font-size: 18px;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    margin: 20px 0;
}

.get-iptv-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

/* IPTV Instructions */
.iptv-instructions {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    margin-top: 30px;
    text-align: left;
}

.iptv-instructions h3 {
    color: #333;
    margin-bottom: 15px;
}

.iptv-instructions p {
    color: #666;
    margin-bottom: 10px;
    line-height: 1.6;
}

.iptv-link {
    background: #f0f0f0;
    padding: 15px;
    border-radius: 5px;
    margin: 15px 0;
    font-family: monospace;
    word-break: break-all;
    border-left: 4px solid #667eea;
}

.copy-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    margin-left: 10px;
}

.copy-btn:hover {
    background: #764ba2;
}

.player-recommendations {
    margin-top: 20px;
}

.player-list {
    text-align: center;
    margin-top: 15px;
}

.player-item {
    display: inline-block;
    background: white;
    border: 2px solid #ddd;
    padding: 10px 20px;
    margin: 5px;
    border-radius: 5px;
    font-weight: 600;
    color: #667eea;
}

.error-message {
    background: #ffebee;
    color: #c62828;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border-left: 4px solid #c62828;
}

.success-message {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border-left: 4px solid #2e7d32;
}

@media (max-width: 600px) {
    .auth-container {
        padding: 20px;
    }
    
    .language-buttons {
        flex-direction: column;
    }
    
    .header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .header-actions {
        justify-content: center;
    }
}