:root {
    --color-text: #E4DEFF;
    --color-text-muted: #C5D5FF;
    --color-accent: #A99AFF;
    --color-glow: #91E5F2;

    --color-background: #05040B;

    --font-display: Georgia, "Times New Roman", serif;
    --font-body: system-ui, sans-serif;
}

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

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    background: var(--color-background);
    color: var(--color-text);
    font-family: var(--font-body);
}

.covenant {
    position: relative;
    min-height: 100vh;
    overflow: hidden;

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

    padding: 3rem 1.5rem;
    text-align: center;

    background: var(--color-background);
}

/* Imagem do santuário */
.covenant__background {
    position: absolute;
    inset: 0;

    background-color: #05040B;
    background-image:
        radial-gradient(
            ellipse at 50% 38%,
            rgba(91, 72, 155, 0.22) 0%,
            rgba(51, 43, 103, 0.14) 32%,
            transparent 68%
        ),
        radial-gradient(
            ellipse at 85% 55%,
            rgba(67, 111, 158, 0.13) 0%,
            transparent 48%
        ),
        radial-gradient(
            ellipse at 10% 90%,
            rgba(63, 48, 119, 0.12) 0%,
            transparent 52%
        ),
        linear-gradient(
            160deg,
            #080711 0%,
            #0B0A1B 45%,
            #04050C 100%
        );

    background-repeat: no-repeat;
    background-size: cover;
}

/* Véu — iluminação e legibilidade */
.covenant__veil {
    position: absolute;
    inset: 0;
    pointer-events: none;

    background:
        radial-gradient(
            ellipse at center,
            rgba(5, 4, 11, 0.76) 0%,
            rgba(5, 4, 11, 0.62) 35%,
            rgba(5, 4, 11, 0.28) 70%,
            rgba(5, 4, 11, 0.42) 100%
        );
}

/* Conteúdo acima das camadas */
.covenant__content {
    position: relative;
    z-index: 1;
}
.covenant h1 {
    color: var(--color-text);
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 400;
    letter-spacing: 0.2em;

    text-shadow:
        0 0 24px #A99AFF35,
        0 0 60px #6C5CE720;
}

.covenant p {
    max-width: 36rem;
    margin-top: 2rem;

    color: var(--color-text-muted);
    text-shadow: 0 1px 8px rgba(5, 4, 11, 0.9);
    font-size: 1rem;
    line-height: 1.9;
    letter-spacing: 0.04em;
}

/* ================================
   COVENANT — Name Form
   ================================ */

.covenant-form {
    width: min(100%, 380px);
    margin: 2rem auto 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.6rem;
}

/* Campo de nome */

.covenant-input {
    width: 100%;
    padding: 1rem 0.8rem;

    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(174, 160, 255, 0.35);
    border-radius: 0;

    color: #eeeaff;
    font: inherit;
    font-size: 1rem;
    letter-spacing: 0.06em;
    text-align: center;

    outline: none;
    box-shadow: none;

    transition:
        border-color 350ms ease,
        box-shadow 350ms ease,
        color 350ms ease;
}

.covenant-input::placeholder {
    color: rgba(211, 204, 240, 0.48);
    letter-spacing: 0.08em;

    transition: color 350ms ease;
}

.covenant-input:hover {
    border-bottom-color: rgba(174, 160, 255, 0.65);
}

.covenant-input:focus {
    border-bottom-color: #a99aff;
    box-shadow: 0 5px 18px -12px rgba(169, 154, 255, 0.9);
}

.covenant-input:focus::placeholder {
    color: rgba(211, 204, 240, 0.25);
}

/* Botão de entrada */

.covenant-submit {
    position: relative;
    padding: 0.75rem 1.8rem;

    background: rgba(16, 14, 34, 0.35);
    border: 1px solid rgba(174, 160, 255, 0.25);
    border-radius: 3px;

    color: rgba(231, 226, 255, 0.82);
    font: inherit;
    font-size: 0.85rem;
    letter-spacing: 0.12em;

    cursor: pointer;

    transition:
        color 300ms ease,
        background 300ms ease,
        border-color 300ms ease,
        box-shadow 300ms ease,
        transform 300ms ease;
}

.covenant-submit:hover {
    color: #fff;
    background: rgba(106, 87, 180, 0.16);
    border-color: rgba(174, 160, 255, 0.7);
    box-shadow: 0 0 24px rgba(117, 96, 210, 0.12);
    transform: translateY(-1px);
}

.covenant-submit:focus-visible {
    outline: 2px solid #a99aff;
    outline-offset: 4px;
}

.covenant-submit:active {
    transform: translateY(0);
}

/* Retorno ao Home */

.covenant-home {
    display: inline-block;
    margin-top: 2.5rem;

    color: rgba(211, 204, 240, 0.48);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-decoration: none;

    transition:
        color 300ms ease,
        text-shadow 300ms ease;
}

.covenant-home:hover {
    color: rgba(224, 217, 255, 0.95);
    text-shadow: 0 0 12px rgba(169, 154, 255, 0.3);
}

/* Acessibilidade: movimento reduzido */

@media (prefers-reduced-motion: reduce) {
    .covenant-input,
    .covenant-input::placeholder,
    .covenant-submit,
    .covenant-home {
        transition: none;
    }

    .covenant-submit:hover {
        transform: none;
    }
}
