/* Estilos para a Página de Login */
body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: #0d1117;
    color: #fff;
    overflow: hidden;
}

#background-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 20px;
}

.login-card {
    background: rgba(13, 17, 23, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 30px rgba(0, 183, 255, 0.15);
    max-width: 400px;
    width: 100%;
    text-align: center;
    position: relative;
    overflow: hidden; /* Para as animações */
}

/* --- Vistas e Transições --- */
#initial-view, #form-view {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

#initial-view.hidden, #form-view.hidden {
    opacity: 0;
    pointer-events: none;
    position: absolute; /* Remove do fluxo para a outra vista ocupar o espaço */
    transform: translateY(10px);
}

h1 {
    font-size: 3rem;
    font-weight: 700;
    margin: 0;
    color: #e0f7fa;
    text-shadow: 0 0 15px rgba(0, 183, 255, 0.5);
}

.subtitle {
    font-size: 1rem;
    color: #b0bec5;
    margin-bottom: 30px;
}

/* --- Botões Iniciais --- */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.action-buttons button {
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #80deea;
    background-color: transparent;
    color: #80deea;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-buttons button.primary {
    background: linear-gradient(90deg, #00c6ff, #0072ff);
    color: #fff;
    border: none;
}

.action-buttons button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 114, 255, 0.4);
}
.action-buttons button:not(.primary):hover {
    background-color: rgba(0, 183, 255, 0.1);
    box-shadow: 0 8px 25px rgba(0, 183, 255, 0.2);
}


/* --- Vista do Formulário --- */
#back-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}
#back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

#form-title {
    margin-top: 10px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #cfd8dc;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1rem;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #00b7ff;
    box-shadow: 0 0 15px rgba(0, 183, 255, 0.3);
}

#code-input {
    text-align: center;
    letter-spacing: 0.5em;
    font-weight: 600;
}

#submit-button {
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(90deg, #00c6ff, #0072ff);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

#submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 114, 255, 0.4);
}

#message-area {
    margin-top: 20px;
    font-weight: 500;
    min-height: 20px;
}
