/* Importa uma fonte moderna do Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

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

body {
    font-family: 'Poppins', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden; /* Esconde o excesso da animação */

    /* O fundo gradiente animado */
    background: linear-gradient(-45deg, #1e003b, #3c005a, #0d3b4e, #002b42);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

/* Animação do fundo */
@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 40px;

    /* O Efeito "Glassmorphism" */
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.login-container h1 {
    color: #fff;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 600;
    letter-spacing: 1px;
}

.input-group {
    position: relative;
    margin-bottom: 30px;
}

.input-group input {
    width: 100%;
    padding: 10px 0;
    font-size: 16px;
    color: #fff;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
    outline: none;
    transition: border-color 0.3s;
}

/* Placeholder com cor suave */
.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* Animação no foco (quando clica) */
.input-group input:focus {
    border-bottom-color: #00e5ff; /* Um ciano vibrante */
}

.btn-login {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    background-image: linear-gradient(90deg, #00e5ff, #00f2a0);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Animação do botão */
.btn-login:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.5);
}

.error-message {
    background: rgba(255, 0, 0, 0.2);
    color: #ffcccc;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 0, 0, 0.5);
}

/* --- Estilos do Dashboard --- */

.page-container {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    padding: 20px;
    color: white;
}

/* Header (barra do topo) */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 20px 30px;

    /* Efeito de vidro no header */
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 30px;
}

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

.header .points {
    background: rgba(0, 0, 0, 0.2);
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.header .points span {
    color: #00e5ff; /* Ciano vibrante para destacar os pontos */
    font-weight: 700;
}

.header .logout a {
    color: #ffcccc;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}
.header .logout a:hover {
    color: #ff6666;
}

/* Seção da Loja */
.shop-section {
    margin-bottom: 40px;
}

.shop-section h2 {
    font-size: 28px;
    font-weight: 600;
    border-bottom: 2px solid rgba(0, 229, 255, 0.5);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Grid de Cards */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* Card do Item */
.shop-card {
    /* Efeito de vidro no card */
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.shop-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.card-header h3 {
    font-size: 20px;
    font-weight: 600;
}

.card-server {
    background: #00e5ff;
    color: #1a1a1a;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.card-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    flex-grow: 1; /* Faz a descrição ocupar o espaço */
    margin-bottom: 20px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-price {
    font-size: 22px;
    font-weight: 700;
    color: #00f2a0; /* Verde neon */
}

/* Botão de comprar (copiado do btn-login) */
.btn-comprar {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    background-image: linear-gradient(90deg, #00e5ff, #00f2a0);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-comprar:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.5);
}
/* --- Mensagens de Alerta --- */
.alert-message {
    padding: 15px 20px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid;
}

.alert-success {
    background: rgba(0, 242, 160, 0.15); /* Fundo verde neon suave */
    color: #00f2a0;
    border-color: rgba(0, 242, 160, 0.3);
}

.alert-error {
    background: rgba(255, 0, 0, 0.15); /* Fundo vermelho suave */
    color: #ffcccc;
    border-color: rgba(255, 0, 0, 0.3);
}