/* Tela de login CICA — ecrã dividido com slideshow */
html,
body {
    height: 100%;
    margin: 0;
}

.login-page {
    min-height: 100vh;
    display: flex;
    font-family: 'Inter', sans-serif;
}

.login-visual {
    position: relative;
    flex: 1.15;
    min-height: 100vh;
    overflow: hidden;
    background: var(--cor-principal, #093046);
}

.login-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 1.15s ease, transform 8s ease;
}

.login-slide.is-active {
    opacity: 1;
    transform: scale(1);
}

.login-slide-fallback {
    background:
        radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, 0.08), transparent 55%),
        linear-gradient(165deg, #0c3d58 0%, #093046 48%, #051d2b 100%);
}

.login-visual-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(5, 29, 43, 0.18) 0%, rgba(5, 29, 43, 0.42) 100%);
    pointer-events: none;
}

.login-visual-dots {
    position: absolute;
    z-index: 2;
    left: 0;
    right: 0;
    bottom: 28px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.login-visual-dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
}

.login-visual-dots button.is-active {
    background: #ffffff;
    width: 22px;
    border-radius: 8px;
}

.login-form-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4f6f9;
    padding: 40px 24px;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(9, 48, 70, 0.08);
    padding: 40px 36px 32px;
}

.login-logo {
    display: block;
    height: 48px;
    width: auto;
    max-width: 220px;
    margin: 0 auto 22px;
    object-fit: contain;
}

.login-titulo {
    margin: 0 0 6px;
    text-align: center;
    color: #111827;
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.login-subtitulo {
    margin: 0 0 28px;
    text-align: center;
    color: #6b7280;
    font-size: 0.92rem;
    font-weight: 500;
}

.login-campo {
    margin-bottom: 16px;
}

.login-campo label {
    display: block;
    margin-bottom: 6px;
    color: #6b7280;
    font-size: 0.82rem;
    font-weight: 600;
}

.login-input {
    display: flex;
    align-items: center;
    background: #f3f4f6;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 0 14px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.login-input:focus-within {
    background: #ffffff;
    border-color: var(--cor-principal, #093046);
    box-shadow: 0 0 0 3px rgba(9, 48, 70, 0.12);
}

.login-input i {
    color: #9ca3af;
    font-size: 0.95rem;
    width: 18px;
    text-align: center;
}

.login-input input {
    flex: 1;
    border: 0;
    background: transparent;
    padding: 13px 10px;
    font-size: 0.95rem;
    color: #111827;
    outline: none;
    box-shadow: none;
}

.login-input input::placeholder {
    color: #9ca3af;
}

.login-alerta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 0.85rem;
}

.login-submit {
    display: block;
    width: 100%;
    margin: 8px 0 18px;
    padding: 13px 16px;
    border: 0;
    border-radius: 10px;
    background: var(--cor-principal, #093046);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.login-submit:hover {
    background: var(--cor-hover, #051d2b);
    color: #ffffff;
}

.login-voltar {
    display: block;
    text-align: center;
    color: #9ca3af;
    font-size: 0.85rem;
    text-decoration: none;
}

.login-voltar:hover {
    color: var(--cor-principal, #093046);
    text-decoration: none;
}

@media (max-width: 900px) {
    .login-page {
        flex-direction: column;
    }

    .login-visual {
        min-height: 28vh;
        flex: 0 0 28vh;
    }

    .login-form-side {
        flex: 1;
        padding: 28px 18px 40px;
        align-items: flex-start;
    }

    .login-card {
        padding: 28px 22px 24px;
        box-shadow: none;
    }

    .login-visual-dots {
        bottom: 14px;
    }
}
