/* Exclusivo do login principal: não altera o Portal do Aluno. */
.portal-login-shell {
    padding: 18px 24px;
}

.portal-login-card {
    width: min(100%, 500px);
    min-height: auto;
}

.portal-login-header {
    min-height: 185px;
    padding: 16px 24px 18px;
}

.institution-logo-frame {
    width: 112px;
    height: 88px;
    margin-bottom: 8px;
    padding: 6px;
}

.portal-login-header h1 {
    font-size: 1.35rem;
}

.portal-login-header p {
    margin-top: 5px;
}

.portal-login-panel {
    min-height: auto;
    padding: 22px 24px 16px;
}

.portal-field {
    margin-bottom: 14px;
}

.lieducacao-signature {
    min-height: 60px;
    margin-top: 12px;
    gap: 4px;
}

.lieducacao-logo {
    max-width: 135px;
    max-height: 44px;
}

.professor-app-download {
    text-align: center;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #cbdfe2;
}

.professor-app-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.professor-app-download h2 {
    margin: 0 0 8px;
    color: var(--portal-ink);
    font-size: 1rem;
    font-weight: 700;
}

.professor-app-store {
    display: inline-block;
    margin: 0;
    border-radius: 8px;
}

@media (max-width: 700px) {
    .portal-login-shell {
        padding: 0;
    }

    .portal-login-card {
        width: 100%;
        min-height: 100vh;
        min-height: 100dvh;
    }

    .portal-login-header {
        padding-bottom: 28px;
    }

    .portal-login-panel {
        padding: 24px 20px 16px;
    }
}

.professor-app-store:focus-visible {
    outline: 3px solid var(--portal-primary-dark);
    outline-offset: 2px;
}

.professor-app-store img {
    display: block;
    width: 180px;
    max-width: 100%;
    height: auto;
}

.professor-app-qr {
    flex: 0 0 90px;
    text-align: center;
}

.professor-app-qr img {
    display: block;
    width: 90px;
    height: 90px;
    margin: 0;
}

.professor-app-qr-hint {
    display: block;
    margin-top: 4px;
    color: var(--portal-muted);
    font-size: 0.72rem;
}

@media (max-width: 700px), (hover: none) and (pointer: coarse) {
    .professor-app-qr,
    .professor-app-qr-hint {
        display: none;
    }

    .professor-app-download {
        justify-content: center;
        text-align: center;
    }

    .professor-app-store {
        margin-left: 0;
    }
}
