:root {
    --deep-purple: #0f0416;
    --gold: #d4af37;
    --gold-glow: rgba(212, 175, 55, 0.4);
    --glass-panel: rgba(15, 5, 20, 0.75);
    --transition: cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    height: 100vh;
    /* Cor de fundo de fallback caso a imagem demore a carregar */
    background-color: var(--deep-purple);
    font-family: 'Tenor Sans', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    color: #fff;
    position: relative;
}

/* --- CONFIGURAÇÃO DO BACKGROUND HEXOCET --- */
canvas#hexocet {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    /* Fica atrás de tudo */

    /* --- MODIFICAÇÃO: IMAGEM DE FUNDO --- */
    background-image: url('../assets/background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(0.7) contrast(1.2);
}

/* --- CONTAINER PRINCIPAL --- */
.temple-container {
    width: 900px;
    height: 550px;
    display: flex;
    background: var(--glass-panel);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.9);
    position: relative;
    z-index: 10;
    /* Fica acima do background */
}

/* --- LADO ESQUERDO: LOGIN --- */
.info-panel {
    flex: 1;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 2;
}

.logo-img {
    width: 100px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 15px var(--gold-glow));
    border-radius: 50%;
}

h1 {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

p.tagline {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 500px;
}

/* Formulario Dinamico */
.dynamic-form {
    position: relative;
    opacity: 0.5;
    pointer-events: none;
    transition: 0.5s;
    filter: blur(2px);
}

.temple-container.active .dynamic-form {
    opacity: 1;
    pointer-events: all;
    filter: blur(0);
}

.input-line {
    position: relative;
    margin-bottom: 30px;
}

.input-line input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 0;
    color: #fff;
    font-family: 'Tenor Sans', sans-serif;
    font-size: 1.1rem;
    outline: none;
    transition: 0.3s;
}

.input-line label {
    position: absolute;
    left: 0;
    top: 10px;
    color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
    transition: 0.3s;
    font-size: 0.9rem;
}

.input-line input:focus,
.input-line input:valid {
    border-bottom-color: var(--gold);
}

.input-line input:focus~label,
.input-line input:valid~label {
    top: -15px;
    font-size: 0.75rem;
    color: var(--gold);
}

.btn-submit {
    padding: 15px 40px;
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-family: 'Cinzel', serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: 0.4s;
    position: relative;
    overflow: hidden;
    width: 100%;
    /* Ajuste para centralizar visualmente */
}

.btn-submit:hover {
    background: var(--gold);
    color: #000;
    box-shadow: 0 0 40px var(--gold-glow);
}

/* Adição para mensagem de erro */
.erro-msg {
    color: #ff6b6b;
    font-size: 0.8rem;
    margin-top: 15px;
    text-align: center;
    display: none;
}

/* --- LADO DIREITO: PILARES --- */
.pillars-panel {
    flex: 1.2;
    display: flex;
}

.pillar {
    flex: 1;
    position: relative;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: flex 0.6s var(--transition), background 0.6s;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
}

.pillar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    transition: 0.6s;
    filter: grayscale(100%);
}

.pillar:nth-child(1)::before {
    background-image: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=800&q=80');
}

.pillar:nth-child(2)::before {
    background-image: url('https://images.unsplash.com/photo-1518531933037-91b2f5f229cc?auto=format&fit=crop&w=800&q=80');
}

.pillar:nth-child(3)::before {
    background-image: url('https://images.unsplash.com/photo-1506126613408-eca07ce68773?auto=format&fit=crop&w=800&q=80');
}

.pillar:nth-child(4)::before {
    background-image: url('https://images.unsplash.com/photo-1614850523459-c2f4c699c52e?auto=format&fit=crop&w=800&q=80');
}

.pillar-content {
    position: relative;
    z-index: 2;
    text-align: center;
    white-space: nowrap;
}

.pillar-icon {
    font-size: 1.5rem;
    margin-bottom: 10px;
    display: block;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    transition: 0.4s;
}

.pillar-title {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: 0.4s 0.1s;
    letter-spacing: 2px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.pillar:hover {
    flex: 2;
    background: rgba(0, 0, 0, 0.4);
}

.pillar:hover::before {
    opacity: 0.6;
    filter: grayscale(0%);
}

.pillar:hover .pillar-title {
    opacity: 1;
    transform: translateY(0);
    writing-mode: horizontal-tb;
}

.pillar.active {
    flex: 4;
    background: rgba(0, 0, 0, 0.1);
}

.pillar.active::before {
    opacity: 0.8;
    filter: grayscale(0%) sepia(20%);
}

.pillar.active .pillar-title {
    opacity: 1;
    transform: translateY(0);
    writing-mode: horizontal-tb;
    font-size: 1.5rem;
    color: var(--gold);
}

.pillar.active .pillar-icon {
    color: var(--gold);
    transform: scale(1.2);
}

.pillar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    opacity: 0.6;
}

.delta-copyright {
    position: fixed;
    left: 22px;
    bottom: 14px;
    z-index: 9999;
    font-family: "Tenor Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    font-size: 8px;
    letter-spacing: .6px;
    color: rgb(255, 221, 0);
    text-shadow: 0 6px 18px rgb(0, 0, 0);
    user-select: none;
    pointer-events: none;
}

.delta-copyright strong {
    color: rgb(255, 221, 0);
    text-shadow: 0 6px 18px rgb(0, 0, 0);
    font-weight: 600;
}

@media(max-width: 800px) {
    .temple-container {
        flex-direction: column;
        height: auto;
        width: 95%;
    }

    .pillars-panel {
        height: 200px;
    }

    .pillar-title {
        writing-mode: horizontal-tb;
        display: none;
    }

    .pillar.active .pillar-title {
        display: block;
    }
}