/* 
 * ZaapTV Premium Design System (Master Class Edition)
 * Cores: Purple Indigo Mesh
 */

:root {
    /* Cores de Identidade */
    --primary: #a855f7;
    --primary-hover: #9333ea;
    --accent: #6366f1;

    /* Superfícies e Vidros */
    --bg-main: #020617;
    --bg-card: rgba(255, 255, 255, 0.02);
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);

    /* Tipografia */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --input-bg: rgba(255, 255, 255, 0.04);
}

/* Fundo Mesh Gradient Animado */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', 'Inter', system-ui, sans-serif;
}

body {
    background: var(--bg-main);
    background-image:
        radial-gradient(at 0% 0%, rgba(168, 85, 247, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(99, 102, 241, 0.15) 0px, transparent 50%);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

/* Estrutura do Card Glassmorphism */
.container {
    width: 100%;
    max-width: 480px;
    padding: 20px;
    animation: fadeIn 0.8s ease-out;
}

.card {
    background: var(--bg-card);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    padding: 50px 40px;
    border-radius: 32px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.card:hover {
    border-color: rgba(168, 85, 247, 0.3);
    transform: translateY(-8px);
}

/* Cabeçalho do Card */
.card-header {
    text-align: center;
    margin-bottom: 40px;
}

.card-header i {
    font-size: 48px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

.card-header h2 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -1px;
}

.card-header p {
    color: var(--text-muted);
    font-size: 15px;
    margin-top: 5px;
}

/* Formulários */
.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

input {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--glass-border);
    padding: 16px 20px;
    border-radius: 16px;
    color: white;
    font-size: 15px;
    outline: none;
    transition: all 0.3s;
}

input:focus {
    border-color: var(--primary);
    background: rgba(168, 85, 247, 0.05);
    box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.1);
}

/* Botões Premium */
button,
.btn-premium {
    width: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 18px;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s;
    box-shadow: 0 10px 25px rgba(168, 85, 247, 0.3);
    display: inline-block;
    text-align: center;
    text-decoration: none;
}

button:hover,
.btn-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(168, 85, 247, 0.4);
    filter: brightness(1.1);
}

/* Links e Alertas */
.toggle-link {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
    color: var(--text-muted);
}

.toggle-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    margin-left: 5px;
}

.alert {
    padding: 15px 20px;
    border-radius: 16px;
    margin-bottom: 30px;
    font-size: 14px;
    text-align: center;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dashboard Sidebar/Content (Fallback para Index) */
.sidebar {
    background: var(--glass);
    backdrop-filter: blur(30px);
    border-radius: 28px;
    border: 1px solid var(--glass-border);
}

.main-content {
    background: var(--glass);
    backdrop-filter: blur(30px);
    border-radius: 28px;
    border: 1px solid var(--glass-border);
}