* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    height: 100vh;
    overflow: hidden;
}

/* Fundo com slideshow */
.background-slider {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    display: flex;
}

.background-slider .slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover; /* Ajusta para ocupar toda a tela mantendo proporção */
    background-position: center;
    background-repeat: no-repeat;
    object-fit: cover; /* Garante padronização visual */
    animation: slideAnimation 35s infinite;
    opacity: 0;
}

/* Cada imagem entra no tempo certo */
.background-slider .slide:nth-child(1) { animation-delay: 0s; }
.background-slider .slide:nth-child(2) { animation-delay: 5s; }
.background-slider .slide:nth-child(3) { animation-delay: 10s; }
.background-slider .slide:nth-child(4) { animation-delay: 15s; }
.background-slider .slide:nth-child(5) { animation-delay: 20s; }
.background-slider .slide:nth-child(6) { animation-delay: 25s; }
.background-slider .slide:nth-child(7) { animation-delay: 30s; }

@keyframes slideAnimation {
    0% { opacity: 0; }
    10% { opacity: 1; }
    40% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 0; }
}

/* Área do login */
.login-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.6);
    padding: 40px;
    border-radius: 10px;
    color: #fff;
    width: 300px;
    text-align: center;
}

.login-container h2 {
    margin-bottom: 20px;
}

.login-container input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: none;
    border-radius: 5px;
}

.login-container button {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    background: #ffcb00;
    color: #000;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

.login-container button:hover {
    background: #e0b300;
}

.erro-login {
    background: rgba(255, 0, 0, 0.75);
    color: #fff;
    padding: 8px 10px;
    border-radius: 5px;
    font-size: 13px;
    margin-bottom: 12px;
}

/* Abas (Login / Criar usuário) */
.tabs {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 8px;
}

.tab-btn {
    flex: 1;
    padding: 8px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    background: #333;
    color: #fff;
    font-size: 14px;
    transition: 0.2s;
}

.tab-btn.active {
    background: #ffcb00;
    color: #000;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Mensagens de erro e sucesso */
.erro-login {
    background: rgba(255, 0, 0, 0.8);
    color: #fff;
    padding: 8px 10px;
    border-radius: 5px;
    font-size: 13px;
    margin-bottom: 12px;
}

.sucesso-msg {
    background: rgba(0, 150, 0, 0.8);
    color: #fff;
    padding: 8px 10px;
    border-radius: 5px;
    font-size: 13px;
    margin-bottom: 12px;
}

/* Áreas alternáveis (login / cadastro) */
.area {
    display: none;
}

.area.active {
    display: block;
}

/* Link discreto para criar/voltar */
.alt-link {
    margin-top: 10px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.alt-link a {
    color: #ffcb00;
    text-decoration: underline;
    font-size: 12px;
    opacity: 0.9;
}

.alt-link a:hover {
    opacity: 1;
}
.erro-login {
    background: rgba(255, 0, 0, 0.8);
    color: #fff;
    padding: 8px 10px;
    border-radius: 5px;
    font-size: 13px;
    margin-bottom: 12px;
}

.sucesso-msg {
    background: rgba(0, 150, 0, 0.8);
    color: #fff;
    padding: 8px 10px;
    border-radius: 5px;
    font-size: 13px;
    margin-bottom: 12px;
}

.alt-link {
    margin-top: 10px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
}

.alt-link a {
    color: #ffcb00;
    text-decoration: underline;
    font-size: 12px;
    opacity: 0.9;
}

.alt-link a:hover {
    opacity: 1;
}
