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

body {
    font-family: 'Montserrat', sans-serif;

    /* IMAGEM DE FUNDO */
    background-image: url("../images/fundo.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;

    background-color: #000;
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    color: white;
    position: relative;
}

/* OVERLAY ESCURO */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 0;
}

/* ✨ BRILHO VERDE PADRONIZADO */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(
        circle at 80% 60%,
        rgba(253, 0, 0, 0.1) 0%,
        transparent 50%
    );
    pointer-events: none;
    z-index: 1;
}

/* CONTEÚDO ACIMA DE TUDO */
body > * {
    position: relative;
    z-index: 2;
}


.login-container {
    background: linear-gradient(145deg, #1a1a1a, #0f0f0f);
    border-radius: 20px;
    padding: 3rem;
    width: 100%;
    max-width: 450px;
    border: 1px solid rgba(255, 61, 61, 0.2);
    box-shadow: 0 20px 60px rgba(255, 61, 61, 0.1);
    position: relative;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #ff3d3d, #ff6b6b);
    border-radius: 20px 20px 0 0;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.logo img {
    height: 60px;
    margin-bottom: 1rem;
}

.login-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #fff, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-text {
    color: #ff6b6b;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.5;
}

.login-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 2rem;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    border: none;
    background: transparent;
    color: #ccc;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: linear-gradient(45deg, #ff3d3d, #ff6b6b);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 61, 61, 0.3);
}

.form {
    display: none;
}

.form.active {
    display: block;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #e0e0e0;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #ff3d3d;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(255, 61, 61, 0.1);
}

.form-group input::placeholder {
    color: #888;
}

.btn-login, .btn-register {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-login {
    background: linear-gradient(45deg, #ff3d3d, #ff6b6b);
    color: white;
}

.btn-register {
    background: linear-gradient(45deg, #020202, #ff3d3d);
    color: white;
}

.btn-login:hover, .btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 61, 61, 0.3);
}

.form-footer {
    text-align: center;
    margin-top: 1rem;
}


.login-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.back-home {
    color: #ccc;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.back-home:hover {
    color: #ff3d3d;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 3000;
}

.loading-overlay.active {
    display: flex;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid #ff3d3d;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-overlay p {
    color: white;
    font-size: 1rem;
}

/* Mensagens de erro/sucesso */
.message {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    text-align: center;
}

.message.error {
    background: rgba(255, 61, 61, 0.1);
    border: 1px solid rgba(255, 61, 61, 0.3);
    color: #ff6b6b;
}

.message.success {
    background: rgba(175, 76, 76, 0.1);
    border: 1px solid rgba(175, 76, 76, 0.3);
    color: #af4c4c;
}

/* Responsividade */
@media (max-width: 480px) {
    .login-container {
        margin: 1rem;
        padding: 2rem;
    }
    
    .login-header h1 {
        font-size: 1.5rem;
    }
}