/* Estilos Gerais - Tema "CoffeeFlix" */
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #111827; /* Fallback de cor escura */
    overflow: hidden; /* Prevent scrolling on auth pages */
}

/* Pseudo-elemento para o fundo com blur */
body::before {
    content: '';
    position: fixed;
    top: -10px; left: -10px; right: -10px; bottom: -10px; /* Estica para evitar bordas */
    z-index: -2;
    background-image: url('../img/auth-background.jpg');
    background-size: cover;
    background-position: center center;
    filter: blur(3px);
}

/* O container principal que preenche a tela e alinha os itens */
.auth-wrapper {
    width: 100vw;
    height: 100vh;
    overflow: hidden; /* Prevent scrolling on auth pages */
    display: flex;
    justify-content: flex-end; /* Alinha os itens à direita */
    align-items: center; /* Alinha os itens ao topo */
    gap: 20px; /* Espaço entre o globo e o card */
    padding: 2rem;
    box-sizing: border-box;
    z-index: 2;
}

/* Container para o globo */
.globe-container {
    flex: 1; /* Ocupa o espaço disponível */
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 50%; /* Limita a largura máxima */
    pointer-events: auto; /* Permite interação com o globo */
}

/* O canvas do globo */
#earth-canvas {
    width: 100%;
    max-width: 17000px; /* Tamanho máximo para o globo */
    height: auto;
    aspect-ratio: 1 / 1;
    z-index: 1;
}

/* Container para o formulário */
.form-container {
    flex: 1; /* Ocupa o espaço disponível */
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 45%; /* Limita a largura máxima */
    pointer-events: auto; /* Permite interação com o formulário */
    overflow-y: auto; /* Adiciona scroll vertical se o conteúdo for muito alto */
}

/* Card de login */
.auth-card {
    background-color: rgba(0, 0, 0, 0.55);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    width: 100%;
    max-width: 700px; /* Aumenta um pouco a largura máxima */
    z-index: 2;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.login-card {
    max-width: 450px;
}

/* Título e subtítulo */
.auth-card h2 {
    color: #FFFFFF;
    margin-top: 0;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
}

/* Estilos para os campos do Crispy Forms */
.auth-card .form-label {
    color: #B0B0B0 !important;
    font-size: 0.9rem;
}

.auth-card .form-control {
    background-color: #333333 !important;
    border: 1px solid #555555 !important;
    color: #FFFFFF !important;
    border-radius: 4px;
    padding: 1rem;
    font-size: 1rem;
}

.auth-card .form-control:focus {
    background-color: #444444 !important;
    border-color: #3B82F6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2) !important;
}

.auth-card .form-control::placeholder {
    color: #8C8C8C !important;
}

/* Botão de submit */
.auth-card .btn-primary {
    padding: 0.9rem;
    border-radius: 4px;
    background-color: #30363d;
    color: #FFFFFF;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s;
    margin-top: 0.3rem;
}

.auth-card .btn-primary:hover {
    background-color: #2563EB;
}

/* Link de registro */
.register-link {
    text-align: center;
    margin-top: 2rem;
    font-size: 1rem;
}

.register-link a {
    color: #3B82F6;
    text-decoration: none;
    font-weight: bold;
}

.register-link a:hover {
    text-decoration: underline;
}

/* Rodapé */
.auth-footer {
    width: 100%;
    padding: 1rem;
    bottom: 0;
    text-align: center;
    background-color: rgba(18, 18, 18, 0.8); /* Fundo com transparência */
    color: #B0B0B0;
    margin-top: 2rem; /* Adiciona espaço acima do rodapé */
}

.auth-footer p {
    margin: 0 0 0.5rem 0;
    font-size: 0.8rem;
}

.auth-footer nav a {
    color: #E0E0E0;
    text-decoration: none;
    margin: 0 0.75rem;
    font-size: 0.8rem;
    transition: color 0.2s;
}

.auth-footer nav a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Animação de ondas (se usada) */
.waves { display: none; }
.parallax > use { animation: move-forever 25s cubic-bezier(.55,.5,.45,.5) infinite; }
.parallax > use:nth-child(1) { animation-delay: -2s; animation-duration: 7s; }
.parallax > use:nth-child(2) { animation-delay: -3s; animation-duration: 10s; }
.parallax > use:nth-child(3) { animation-delay: -4s; animation-duration: 13s; }
.parallax > use:nth-child(4) { animation-delay: -5s; animation-duration: 20s; }
@keyframes move-forever { 0% { transform: translate3d(-90px,0,0); } 100% { transform: translate3d(85px,0,0); } }

/* Partículas JS */
#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: 1; /* Atrás do conteúdo principal */
}

/* Estiliza o texto de ajuda do Crispy Forms para ser mais claro */
.auth-card .form-text {
    color: #b0b0b0 !important; /* Cinza claro para melhor legibilidade */
    font-size: 0.8rem;
}

/* Estilos para o checkbox "Ver Senha" */
.auth-card .form-check {
    padding-left: 0; /* Remove o padding padrão */
    margin-top: 0.5rem;
}

.auth-card .form-check-label {
    color: #B0B0B0;
    font-size: 0.9rem;
    cursor: pointer;
}

.auth-card .form-check-input {
    cursor: pointer;
    margin-right: 0.5rem;
}