@charset "UTF-8";

* {
  box-sizing: border-box;
}

#PageWrapper {
    display: grid;
    grid-template-rows: 1fr auto;
    grid-template-areas:
        "content"
        "footer";
    margin: 0;
    min-height: 100vh;
}

#ContentWrapper {
    grid-area: content;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
}

#FooterWrapper {
    grid-area: footer;
    margin: 0;
}

/* ── Login card ── */
#LoginForm {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 380px;
    padding: 2rem 2.2rem 1.8rem;
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* ── Logo ── */
#LogoBlock {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 3rem;
}

#LogoVias {
    height: 8rem;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(55, 69, 132, 0.6))
            drop-shadow(0 0 20px rgba(55, 69, 132, 0.3));
    animation: logoGlow 4s ease-in-out infinite;
}

@keyframes logoGlow {
    0%, 100% {
        filter: drop-shadow(0 0 8px rgba(55, 69, 132, 0.5))
                drop-shadow(0 0 18px rgba(55, 69, 132, 0.25));
    }
    33% {
        filter: drop-shadow(0 0 10px rgba(200, 40, 40, 0.45))
                drop-shadow(0 0 22px rgba(200, 40, 40, 0.2));
    }
    66% {
        filter: drop-shadow(0 0 10px rgba(220, 180, 20, 0.45))
                drop-shadow(0 0 22px rgba(220, 180, 20, 0.2));
    }
}

/* ── Input blocks ── */
#UserBlock,
#PasswordBlock,
#EmailBlock {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    width: 100%;
    margin-bottom: 0.85rem;
}

/* Labels */
#LoginForm .ui-outputlabel {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

/* Inputs */
#LoginForm .ui-inputfield {
    width: 100% !important;
    padding: 0.6rem 0.8rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    color: #fff;
    font-size: 0.9rem;
    transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}

#LoginForm .ui-inputfield:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 0 3px rgba(55, 69, 132, 0.35);
    outline: none;
}

#LoginForm .ui-inputfield::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

/* ── Captcha ── */
#CaptchaBlock {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 0.5rem;
}

/* ── Messages ── */
#MessagesBlock {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 0;
    margin-bottom: 0.4rem;
}

#LoginMessages .ui-messages > div {
    padding: 0.45em 0.7em;
    border-radius: 6px;
    font-size: 0.85rem;
}

#LoginForm .ui-message {
    font-size: 0.78rem;
    margin-top: 0.1rem;
}

/* ── Login button ── */
#ButtonBlock {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
}

#ButtonBlock .ui-button {
    width: 100%;
    padding: 0.65rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, #4a5ba8, #374584);
    color: #fff;
    cursor: pointer;
    transition: background 0.25s, box-shadow 0.25s, transform 0.1s;
}

#ButtonBlock .ui-button:hover {
    background: linear-gradient(135deg, #5568bb, #4a5ba8);
    box-shadow: 0 4px 18px rgba(55, 69, 132, 0.5);
}

#ButtonBlock .ui-button:active {
    transform: scale(0.98);
}

/* ── Password recovery link ── */
#PassRecoveryBlock {
    width: 100%;
    text-align: center;
    margin-top: 0.4rem;
}

#PasswordRecovery {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.82rem;
    text-decoration: none;
    transition: color 0.25s;
}

#PasswordRecovery:hover {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
}
